summaryrefslogtreecommitdiff
path: root/src/core/window.c
diff options
context:
space:
mode:
authorOmar Zeidan <[email protected]>2017-12-29 08:45:00 +0100
committerraveit65 <[email protected]>2017-12-30 12:49:28 +0100
commit7e2aea33a6fa5ba3bed740b65aaafb872551c150 (patch)
tree1056e5226d7175cf6c7f8ceb9d65273473b092da /src/core/window.c
parent1369489856b3ee6c208de0a96155a294499b6a27 (diff)
downloadmarco-7e2aea33a6fa5ba3bed740b65aaafb872551c150.tar.bz2
marco-7e2aea33a6fa5ba3bed740b65aaafb872551c150.tar.xz
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.
Diffstat (limited to 'src/core/window.c')
-rw-r--r--src/core/window.c7
1 files changed, 6 insertions, 1 deletions
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