mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
Update window->has_resize_func at the right time when unfullscreening
Since the frame window size that meta_window_move_resize() uses depends on whether the window has horizontal/vertical resize functionality, we need to update this flag before we resize the window. https://bugzilla.gnome.org/show_bug.cgi?id=659854
This commit is contained in:
parent
f94f008ed6
commit
ba31ba4615
@ -3906,6 +3906,11 @@ meta_window_unmake_fullscreen (MetaWindow *window)
|
|||||||
*/
|
*/
|
||||||
ensure_size_hints_satisfied (&target_rect, &window->size_hints);
|
ensure_size_hints_satisfied (&target_rect, &window->size_hints);
|
||||||
|
|
||||||
|
/* Need to update window->has_resize_func before we move_resize()
|
||||||
|
*/
|
||||||
|
recalc_window_features (window);
|
||||||
|
set_net_wm_state (window);
|
||||||
|
|
||||||
meta_window_move_resize (window,
|
meta_window_move_resize (window,
|
||||||
FALSE,
|
FALSE,
|
||||||
target_rect.x,
|
target_rect.x,
|
||||||
@ -3919,9 +3924,6 @@ meta_window_unmake_fullscreen (MetaWindow *window)
|
|||||||
|
|
||||||
meta_window_update_layer (window);
|
meta_window_update_layer (window);
|
||||||
|
|
||||||
recalc_window_features (window);
|
|
||||||
set_net_wm_state (window);
|
|
||||||
|
|
||||||
g_object_notify (G_OBJECT (window), "fullscreen");
|
g_object_notify (G_OBJECT (window), "fullscreen");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user