Only unmaximise window before freeing if the window is actually maximised.

2006-03-06  Ryan Lortie  <desrt@desrt.ca>

        * src/window.c (meta_window_free): Only unmaximise window before
        freeing if the window is actually maximised.  #333563.
This commit is contained in:
Ryan Lortie 2006-03-06 16:33:33 +00:00 committed by Ryan Lortie
parent 8c2a5dbc19
commit 3c6b291641
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-03-06 Ryan Lortie <desrt@desrt.ca>
* src/window.c (meta_window_free): Only unmaximise window before
freeing if the window is actually maximised. #333563.
Fri Mar 3 15:31:04 2006 Søren Sandmann <sandmann@redhat.com>
* src/c-screen.c (meta_screen_info_new): Update for libcm API

View File

@ -979,7 +979,8 @@ meta_window_free (MetaWindow *window)
if (window->display->focus_window == window)
window->display->focus_window = NULL;
unmaximize_window_before_freeing (window);
if (window->maximized_horizontally || window->maximized_vertically)
unmaximize_window_before_freeing (window);
meta_window_unqueue_calc_showing (window);
meta_window_unqueue_move_resize (window);