[gnome-shell] windowMenu: Only disable "Always on Top" for fully maximized



commit 1e82d6edc2fb6de914aaa2949d35cdf7130c3130
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Sep 25 21:26:07 2014 +0200

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/windowMenu.js b/js/ui/windowMenu.js
index cec044e..3d378fa 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)


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