[mutter] window: Also use hide-titlebar-when-maximized when tiled



commit 0a50488befa2b31b933de7538a082e2b0eea3f43
Author: Florian MÃllner <fmuellner gnome org>
Date:   Tue Jul 3 02:19:37 2012 +0200

    window: Also use hide-titlebar-when-maximized when tiled
    
    Side-by-side tiling is conceptually very close to maximization
    ("half-maximized"), so it makes sense to also hide the titlebar
    in this state if requested by the application.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679290

 src/core/window.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 9f1c99d..bc119a2 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -10642,7 +10642,8 @@ meta_window_get_frame_type (MetaWindow *window)
       return META_FRAME_TYPE_LAST;
     }
   else if ((window->border_only && base_type != META_FRAME_TYPE_ATTACHED) ||
-           (window->hide_titlebar_when_maximized && META_WINDOW_MAXIMIZED (window)))
+           (window->hide_titlebar_when_maximized && META_WINDOW_MAXIMIZED (window)) ||
+           (window->hide_titlebar_when_maximized && META_WINDOW_TILED_SIDE_BY_SIDE (window)))
     {
       /* override base frame type */
       return META_FRAME_TYPE_BORDER;



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