[gnome-shell] chrome: Ignore minimized windows when updating visibility



commit 7a6c25b3fba5a4e9e186724e604a9405da4a2d43
Author: Florian MÃllner <fmuellner gnome org>
Date:   Wed Jul 27 21:41:44 2011 +0200

    chrome: Ignore minimized windows when updating visibility
    
    The current check for fullscreen windows ignores the window's
    minimization state, so that chrome which is hidden in fullscreen
    will always hide if the window on top of the window stack is
    fullscreen, even if it is actually minimized.
    Instead, skip minimized windows when looking for fullscreen windows.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=655446

 js/ui/chrome.js |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/chrome.js b/js/ui/chrome.js
index 5dd21e5..7110ee5 100644
--- a/js/ui/chrome.js
+++ b/js/ui/chrome.js
@@ -289,6 +289,11 @@ Chrome.prototype = {
 
         for (let i = windows.length - 1; i > -1; i--) {
             let window = windows[i];
+
+            // Skip minimized windows
+            if (!window.showing_on_its_workspace())
+                continue;
+
             let layer = window.get_meta_window().get_layer();
 
             if (layer == Meta.StackLayer.FULLSCREEN) {



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