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) &&
|
if (!hidden && node_is_view(node) &&
|
||||||
wl_list_empty(&node->sway_container->view->saved_buffers)) {
|
wl_list_empty(&node->sway_container->view->saved_buffers)) {
|
||||||
printf("saving buffer\n");
|
|
||||||
view_save_buffer(node->sway_container->view);
|
view_save_buffer(node->sway_container->view);
|
||||||
memcpy(&node->sway_container->view->saved_geometry,
|
memcpy(&node->sway_container->view->saved_geometry,
|
||||||
&node->sway_container->view->geometry,
|
&node->sway_container->view->geometry,
|
||||||
|
|
|
@ -93,6 +93,7 @@ void view_remove_container(struct sway_view *view) {
|
||||||
arrange_workspace(ws);
|
arrange_workspace(ws);
|
||||||
workspace_detect_urgent(ws);
|
workspace_detect_urgent(ws);
|
||||||
}
|
}
|
||||||
|
transaction_commit_dirty();
|
||||||
}
|
}
|
||||||
|
|
||||||
void view_begin_destroy(struct sway_view *view) {
|
void view_begin_destroy(struct sway_view *view) {
|
||||||
|
@ -946,7 +947,7 @@ void view_unmap(struct sway_view *view) {
|
||||||
if (!config->animation_duration) {
|
if (!config->animation_duration) {
|
||||||
view_remove_container(view);
|
view_remove_container(view);
|
||||||
} else {
|
} else {
|
||||||
node_set_dirty(&view->container->node);
|
view_save_buffer(view);
|
||||||
view->container->target_alpha = 0;
|
view->container->target_alpha = 0;
|
||||||
wl_event_source_timer_update(view->container->animation_present_timer, 50);
|
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);
|
seat_consider_warp_to_focus(seat);
|
||||||
}
|
}
|
||||||
|
|
||||||
transaction_commit_dirty();
|
|
||||||
view->surface = NULL;
|
view->surface = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue