move focused_view surface check

This commit is contained in:
sewn 2025-02-05 13:51:22 +03:00
parent 63929ca999
commit 4e1bf721ff
No known key found for this signature in database

5
dam.c
View file

@ -294,6 +294,7 @@ static const struct wl_callback_listener frame_callback_listener = {
static void
bar_frame(Bar *bar)
{
/* note: river sends focused_view too early, before bar surface init */
if (bar->frame_callback || !bar->configured)
return;
bar->frame_callback = wl_surface_frame(bar->surface);
@ -538,9 +539,7 @@ seat_status_handle_focused_view(void *data,
selbar->title = NULL;
if (title[0] != '\0')
selbar->title = strdup(title);
/* river sends focused_view too early, before bar surface init */
if (selbar->surface)
bar_frame(selbar);
bar_frame(selbar);
}
static void