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:
jderose9
2017-01-04 17:23:55 -05:00
parent 9284e1b6f5
commit e5375c4235

View File

@@ -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 () {