mirror of
https://github.com/swaywm/sway.git
synced 2025-11-12 13:29:56 -05:00
Damage output when a fullscreen view unmaps
Also moved the arranging into view_unmap to avoid excessive code duplication.
This commit is contained in:
parent
beacd4d9f9
commit
7a922c65aa
5 changed files with 15 additions and 17 deletions
|
|
@ -260,8 +260,7 @@ static void handle_unmap(struct wl_listener *listener, void *data) {
|
|||
return;
|
||||
}
|
||||
|
||||
struct sway_container *parent = view_unmap(view);
|
||||
arrange_and_commit(parent);
|
||||
view_unmap(view);
|
||||
|
||||
wl_list_remove(&xwayland_view->commit.link);
|
||||
view->surface = NULL;
|
||||
|
|
@ -297,9 +296,7 @@ static void handle_destroy(struct wl_listener *listener, void *data) {
|
|||
struct sway_view *view = &xwayland_view->view;
|
||||
|
||||
if (view->surface) {
|
||||
struct sway_container *parent = view_unmap(view);
|
||||
arrange_and_commit(parent);
|
||||
|
||||
view_unmap(view);
|
||||
wl_list_remove(&xwayland_view->commit.link);
|
||||
view->surface = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue