From 0a50488befa2b31b933de7538a082e2b0eea3f43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 3 Jul 2012 02:19:37 +0200 Subject: [PATCH] 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 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/window.c b/src/core/window.c index 9f1c99d31..bc119a204 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;