diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2022-04-08 16:18:35 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2022-04-08 16:18:35 +0200 |
commit | d3bee833c4fd87c35482fe077ae9c1f883421187 (patch) | |
tree | 05cad7666addf7741eb3291714c8082ca3de3df4 | |
parent | 824deafb57fe65d2c813c21564ac395e02b17990 (diff) | |
download | gnome-shell-wip/carlosg/alt-tab-focus-timestamps.tar.gz |
switcherPopup: Avoid Clutter.CURRENT_TIME timestampswip/carlosg/alt-tab-focus-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.
-rw-r--r-- | js/ui/switcherPopup.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/ui/switcherPopup.js b/js/ui/switcherPopup.js index 4b0479b6d..3efebae2e 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 { |