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 | xwayland: Cleanup geometry handling on commit (diff) | |
download | sway-06ad734e70227ad0527fe11b88ad37e93005ce0c.tar.gz sway-06ad734e70227ad0527fe11b88ad37e93005ce0c.tar.zst sway-06ad734e70227ad0527fe11b88ad37e93005ce0c.zip |
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) { | |||
332 | } | 332 | } |
333 | 333 | ||
334 | if (view->container->node.instruction) { | 334 | if (view->container->node.instruction) { |
335 | transaction_notify_view_ready_by_serial(view, | 335 | bool successful = transaction_notify_view_ready_by_serial(view, |
336 | xdg_surface->current.configure_serial); | 336 | xdg_surface->current.configure_serial); |
337 | |||
338 | // If we saved the view and this commit isn't what we're looking for | ||
339 | // that means the user will never actually see the buffers submitted to | ||
340 | // us here. Just send frame done events to these surfaces so they can | ||
341 | // commit another time for us. | ||
342 | if (view->saved_surface_tree && !successful) { | ||
343 | view_send_frame_done(view); | ||
344 | } | ||
337 | } | 345 | } |
338 | } | 346 | } |
339 | 347 | ||