summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index f5ef79e6..d79d7625 100644
--- a/src/window.c
+++ b/src/window.c
@@ -959,6 +959,9 @@ meta_window_free (MetaWindow *window)
if (window->display->focus_window == window)
window->display->focus_window = NULL;
+ if (window->maximized)
+ meta_window_unmaximize (window);
+
meta_window_unqueue_calc_showing (window);
meta_window_unqueue_move_resize (window);
meta_window_unqueue_update_icon (window);
@@ -984,8 +987,6 @@ meta_window_free (MetaWindow *window)
meta_stack_remove (window->screen->stack, window);
- /* FIXME restore original size if window has maximized */
-
if (window->frame)
meta_window_destroy_frame (window);