diff options
-rw-r--r-- | sway/handlers.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index b8bd9eff..6c6d0e60 100644 --- a/sway/handlers.c +++ b/sway/handlers.c | |||
@@ -252,8 +252,12 @@ static void handle_view_destroyed(wlc_handle handle) { | |||
252 | } | 252 | } |
253 | 253 | ||
254 | if (view) { | 254 | if (view) { |
255 | swayc_t *parent = destroy_view(view); | 255 | bool fullscreen = swayc_is_fullscreen(view); |
256 | remove_view_from_scratchpad(view); | 256 | remove_view_from_scratchpad(view); |
257 | swayc_t *parent = destroy_view(view); | ||
258 | if (fullscreen) { | ||
259 | parent->fullscreen = NULL; | ||
260 | } | ||
257 | arrange_windows(parent, -1, -1); | 261 | arrange_windows(parent, -1, -1); |
258 | } else { | 262 | } else { |
259 | // Is it unmanaged? | 263 | // Is it unmanaged? |