mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
async popup stealing focus on window activations
When switching apps, sometimes the hover popup would activate after the new window was activated, partially stealing focus and leaving new window in a frozen state. Unfortunately I couldn't get this working async to debounce quick mouseovers of the icon. I've only observed in X11 so the previous implementation may be ok in Wayland.
This commit is contained in:
@@ -111,7 +111,7 @@ const thumbnailPreviewMenu = new Lang.Class({
|
||||
this.shouldOpen = true;
|
||||
this.shouldClose = false;
|
||||
|
||||
Mainloop.timeout_add(Taskbar.DASH_ITEM_HOVER_TIMEOUT, Lang.bind(this, this.hoverOpen));
|
||||
this.hoverOpen();
|
||||
},
|
||||
|
||||
_onMenuLeave: function () {
|
||||
@@ -124,7 +124,7 @@ const thumbnailPreviewMenu = new Lang.Class({
|
||||
this.shouldOpen = true;
|
||||
this.shouldClose = false;
|
||||
|
||||
Mainloop.timeout_add(Taskbar.DASH_ITEM_HOVER_TIMEOUT, Lang.bind(this, this.hoverOpen));
|
||||
this.hoverOpen();
|
||||
},
|
||||
|
||||
_onLeave: function () {
|
||||
|
||||
Reference in New Issue
Block a user