diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-04-27 10:25:40 +0200 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2024-01-18 18:36:54 +0300 |
commit | 06ad734e70227ad0527fe11b88ad37e93005ce0c (patch) | |
tree | 5a5e2606242e3d229f4979d2b7c5352a139730b0 /sway/desktop/xdg_shell.c | |
parent | ed2724bd6c83ad3fdc2010b3a1e2f5967f0e8b38 (diff) |
scene_graph: Port view saved buffers
Diffstat (limited to 'sway/desktop/xdg_shell.c')
-rw-r--r-- | sway/desktop/xdg_shell.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sway/desktop/xdg_shell.c b/sway/desktop/xdg_shell.c index fed820cf..95b5cb9d 100644 --- a/sway/desktop/xdg_shell.c +++ b/sway/desktop/xdg_shell.c @@ -332,8 +332,16 @@ static void handle_commit(struct wl_listener *listener, void *data) { } if (view->container->node.instruction) { - transaction_notify_view_ready_by_serial(view, + bool successful = transaction_notify_view_ready_by_serial(view, xdg_surface->current.configure_serial); + + // If we saved the view and this commit isn't what we're looking for + // that means the user will never actually see the buffers submitted to + // us here. Just send frame done events to these surfaces so they can + // commit another time for us. + if (view->saved_surface_tree && !successful) { + view_send_frame_done(view); + } } } |