From 9de0237b208e634dea93a328c4c9100ee5b93c93 Mon Sep 17 00:00:00 2001 From: William McKinnon Date: Wed, 7 Feb 2024 01:01:18 -0500 Subject: [PATCH] added back save buffer on fade out --- sway/desktop/transaction.c | 1 - sway/tree/view.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/sway/desktop/transaction.c b/sway/desktop/transaction.c index 4e06f426..a93ee932 100644 --- a/sway/desktop/transaction.c +++ b/sway/desktop/transaction.c @@ -429,7 +429,6 @@ static void transaction_commit(struct sway_transaction *transaction) { } if (!hidden && node_is_view(node) && wl_list_empty(&node->sway_container->view->saved_buffers)) { - printf("saving buffer\n"); view_save_buffer(node->sway_container->view); memcpy(&node->sway_container->view->saved_geometry, &node->sway_container->view->geometry, diff --git a/sway/tree/view.c b/sway/tree/view.c index 2faaefdb..fe4737d4 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -93,6 +93,7 @@ void view_remove_container(struct sway_view *view) { arrange_workspace(ws); workspace_detect_urgent(ws); } + transaction_commit_dirty(); } void view_begin_destroy(struct sway_view *view) { @@ -946,7 +947,7 @@ void view_unmap(struct sway_view *view) { if (!config->animation_duration) { view_remove_container(view); } else { - node_set_dirty(&view->container->node); + view_save_buffer(view); view->container->target_alpha = 0; wl_event_source_timer_update(view->container->animation_present_timer, 50); } @@ -965,7 +966,6 @@ void view_unmap(struct sway_view *view) { seat_consider_warp_to_focus(seat); } - transaction_commit_dirty(); view->surface = NULL; }