[gnome-shell/wip/carlosg/osk-updates: 1/26] switcherPopup: Avoid Clutter.CURRENT_TIME timestamps




commit b1560e2b58d6cde867256b06916f32997bd8854e
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Apr 8 16:18:35 2022 +0200

    switcherPopup: Avoid Clutter.CURRENT_TIME timestamps
    
    Request the last time with a roundtrip here, in order to ensure the
    received time is not Clutter.CURRENT_TIME, and mistakenly triggers the
    meta_window_set_demands_attention() paths in window activation.
    
    Fixes some situations that very quick alt press, tab press, alt release,
    tab release sequences trigger "$app needs attention" notifications.

 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 4b0479b6d7..3efebae2ec 100644
--- a/js/ui/switcherPopup.js
+++ b/js/ui/switcherPopup.js
@@ -133,7 +133,7 @@ var SwitcherPopup = GObject.registerClass({
         if (this._modifierMask) {
             let [x_, y_, mods] = global.get_pointer();
             if (!(mods & this._modifierMask)) {
-                this._finish(global.get_current_time());
+                this._finish(global.display.get_current_time_roundtrip());
                 return true;
             }
         } else {


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