[gnome-shell] switcherPopup: Always return true when the popup finished early



commit 09acd0a3dbd65b5804c4c10f4df8e68eefc860f8
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Thu Dec 6 18:05:39 2018 +0100

    switcherPopup: Always return true when the popup finished early
    
    When the switcherPopup was initiated successfully, we return true,
    otherwise the WindowManager will try to destroy it. Since an early
    release of the keystroke will also switch to another application and
    close the switcher just fine, we should return true to indicate success
    here.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/167

 js/ui/switcherPopup.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/switcherPopup.js b/js/ui/switcherPopup.js
index f7ee2e769f..f9888d4f5e 100644
--- a/js/ui/switcherPopup.js
+++ b/js/ui/switcherPopup.js
@@ -130,7 +130,7 @@ var SwitcherPopup = GObject.registerClass({
             let [x_, y_, mods] = global.get_pointer();
             if (!(mods & this._modifierMask)) {
                 this._finish(global.get_current_time());
-                return false;
+                return true;
             }
         } else {
             this._resetNoModsTimeout();


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