tree/view: send event unconditionally in view_send_frame_done()

Previously, we were using wl_signal_emit_mutable() directly instead
of wlr_scene_buffer_send_frame_done(). This bypassed any visibility
checks, which matters before a surface is mapped.

Fixes flickering with an invalid size when launching new programs.

Fixes: eb8acfd7b1 ("Stop using wlr_scene_buffer_send_frame_done()")
This commit is contained in:
Simon Ser 2025-06-23 09:43:48 +02:00 committed by Kenny Levinsen
parent 170c9c9525
commit c2f08075ec

View file

@ -1253,7 +1253,7 @@ static void send_frame_done_iterator(struct wlr_scene_buffer *scene_buffer,
if (scene_surface == NULL) {
return;
}
wlr_scene_surface_send_frame_done(scene_surface, when);
wlr_surface_send_frame_done(scene_surface->surface, when);
}
void view_send_frame_done(struct sway_view *view) {