From d3bee833c4fd87c35482fe077ae9c1f883421187 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 8 Apr 2022 16:18:35 +0200 Subject: [PATCH] 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 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 {