From 7e2aea33a6fa5ba3bed740b65aaafb872551c150 Mon Sep 17 00:00:00 2001 From: Omar Zeidan Date: Fri, 29 Dec 2017 08:45:00 +0100 Subject: Reset tile_resized to false when fullscreening After resizing a tiled window, tile_resized gets set to true. Since it never got set back to false when fullscreening, it lead to weird behavior when unfullscreening the window. --- src/core/window.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/window.c b/src/core/window.c index 92e230a0..bdc9a712 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -2902,6 +2902,7 @@ meta_window_make_fullscreen_internal (MetaWindow *window) meta_window_save_rect (window); window->fullscreen = TRUE; + window->tile_resized = FALSE; window->force_save_user_rect = FALSE; meta_stack_freeze (window->screen->stack); @@ -2938,7 +2939,11 @@ meta_window_unmake_fullscreen (MetaWindow *window) "Unfullscreening %s\n", window->desc); window->fullscreen = FALSE; - target_rect = window->saved_rect; + + if(!META_WINDOW_TILED (window)) + target_rect = window->saved_rect; + else + meta_window_get_current_tile_area(window, &target_rect); /* Window's size hints may have changed while maximized, making * saved_rect invalid. #329152 -- cgit v1.2.1