added back save buffer on fade out
This commit is contained in:
parent
a3ef0be4fc
commit
9de0237b20
2 changed files with 2 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue