[mutter/wip/fmuellner/hide-titlebar-when-tiled] window-props: Handle hide-titlebar-when-maximized for tiled windows



commit 108224cd335c4ede75d926f994b0842fd80bb918
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Sep 8 14:17:47 2018 +0200

    window-props: Handle hide-titlebar-when-maximized for tiled windows
    
    While we apply the setting to both maximized and tiled windows, we
    currently only queue a resize for the former. This is required for
    the setting to take effect immediately if the window is already
    tiled.
    
    https://gitlab.gnome.org/GNOME/mutter/issues/296

 src/x11/window-props.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/x11/window-props.c b/src/x11/window-props.c
index d06a89a21..2d50f29b6 100644
--- a/src/x11/window-props.c
+++ b/src/x11/window-props.c
@@ -1729,7 +1729,8 @@ reload_gtk_hide_titlebar_when_maximized (MetaWindow    *window,
 
   window->hide_titlebar_when_maximized = requested_value;
 
-  if (META_WINDOW_MAXIMIZED (window))
+  if (META_WINDOW_MAXIMIZED (window) ||
+      META_WINDOW_TILED_SIDE_BY_SIDE (window))
     {
       meta_window_queue (window, META_QUEUE_MOVE_RESIZE);
       meta_window_frame_size_changed (window);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]