move focused_view surface check
This commit is contained in:
parent
63929ca999
commit
4e1bf721ff
1 changed files with 2 additions and 3 deletions
3
dam.c
3
dam.c
|
@ -294,6 +294,7 @@ static const struct wl_callback_listener frame_callback_listener = {
|
||||||
static void
|
static void
|
||||||
bar_frame(Bar *bar)
|
bar_frame(Bar *bar)
|
||||||
{
|
{
|
||||||
|
/* note: river sends focused_view too early, before bar surface init */
|
||||||
if (bar->frame_callback || !bar->configured)
|
if (bar->frame_callback || !bar->configured)
|
||||||
return;
|
return;
|
||||||
bar->frame_callback = wl_surface_frame(bar->surface);
|
bar->frame_callback = wl_surface_frame(bar->surface);
|
||||||
|
@ -538,8 +539,6 @@ seat_status_handle_focused_view(void *data,
|
||||||
selbar->title = NULL;
|
selbar->title = NULL;
|
||||||
if (title[0] != '\0')
|
if (title[0] != '\0')
|
||||||
selbar->title = strdup(title);
|
selbar->title = strdup(title);
|
||||||
/* river sends focused_view too early, before bar surface init */
|
|
||||||
if (selbar->surface)
|
|
||||||
bar_frame(selbar);
|
bar_frame(selbar);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue