From 1e82d6edc2fb6de914aaa2949d35cdf7130c3130 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 25 Sep 2014 21:26:07 +0200 Subject: [PATCH] windowMenu: Only disable "Always on Top" for fully maximized Since (mutter) commit 49400657caae27 we disable the "Always on Top" action for maximized windows, however when commit e7af257814b1 moved the window menu into the shell, this behavior was accidentally extended to partially maximized (including tiled) windows. As it can be desirable in this case to keep the window visible while interacting with a different one, restore the previous behavior. https://bugzilla.gnome.org/show_bug.cgi?id=737382 --- js/ui/windowMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/windowMenu.js b/js/ui/windowMenu.js index cec044e00..3d378fad7 100644 --- a/js/ui/windowMenu.js +++ b/js/ui/windowMenu.js @@ -75,7 +75,7 @@ const WindowMenu = new Lang.Class({ })); if (window.is_above()) item.setOrnament(PopupMenu.Ornament.DOT); - if (window.get_maximized() || + if (window.get_maximized() == Meta.MaximizeFlags.BOTH || type == Meta.WindowType.DOCK || type == Meta.WindowType.DESKTOP || type == Meta.WindowType.SPLASHSCREEN)