window: Clear the frame borders before calculating the unfullscreen rect

Going from fullscreen to unfullscreen involves a frame border size, so
in order to properly interpret the saved rect size, we need to make sure
that the frame borders are fully up to date.
This commit is contained in:
Jasper St. Pierre 2015-06-23 17:05:27 -07:00
parent 6b82f61dba
commit d74b0d5be8

View File

@ -3241,6 +3241,8 @@ meta_window_unmake_fullscreen (MetaWindow *window)
window->fullscreen = FALSE; window->fullscreen = FALSE;
target_rect = window->saved_rect; target_rect = window->saved_rect;
meta_window_frame_size_changed (window);
/* Window's size hints may have changed while maximized, making /* Window's size hints may have changed while maximized, making
* saved_rect invalid. #329152 * saved_rect invalid. #329152
*/ */