summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2019-05-30 15:03:15 -0400
committerraveit65 <[email protected]>2019-06-16 18:12:44 +0200
commit01417e5675fba04549ab0f818fc83a57969b257c (patch)
treeab37aed3003b4965d5b762e73ae5af104b78c2d9 /src
parentb38437e7d1ef717fd92ef6cff5e0caa5ddcc58da (diff)
downloadmarco-01417e5675fba04549ab0f818fc83a57969b257c.tar.bz2
marco-01417e5675fba04549ab0f818fc83a57969b257c.tar.xz
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 upstream commit: https://gitlab.gnome.org/GNOME/metacity/commit/c66d83a7
Diffstat (limited to 'src')
-rw-r--r--src/core/window.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/window.c b/src/core/window.c
index 8e0d89bd..3ddb21c3 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -3029,6 +3029,11 @@ meta_window_unmake_fullscreen (MetaWindow *window)
*/
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,
FALSE,
target_rect.x,
@@ -3041,9 +3046,6 @@ meta_window_unmake_fullscreen (MetaWindow *window)
force_save_user_window_placement (window);
meta_window_update_layer (window);
-
- recalc_window_features (window);
- set_net_wm_state (window);
}
}