sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit c2f08075ec00632293bbc63582c7f3ffd75441af
parent 170c9c9525f54e8c1ba03847d5f9b01fc24b8c89
Author: Simon Ser <contact@emersion.fr>
Date:   Mon, 23 Jun 2025 09:43:48 +0200

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: eb8acfd7b1cd ("Stop using wlr_scene_buffer_send_frame_done()")

Diffstat:
Msway/tree/view.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sway/tree/view.c b/sway/tree/view.c @@ -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) {