workspace: Continue overlay idle hide timeout when pointing at close button

While it makes sense to remove the timeout in every other case, restart it
if the pointer is hovering over the close button to make sure the overlay
will be hidden afterwards.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/683
This commit is contained in:
Jonas Dreßler 2019-02-12 13:04:55 +01:00 committed by Florian Müllner
parent edf6bd6909
commit 4f3c8b8d69

View File

@ -693,12 +693,13 @@ var WindowOverlay = class {
}
_idleHideOverlay() {
this._idleHideOverlayId = 0;
if (this.closeButton['has-pointer'])
return GLib.SOURCE_CONTINUE;
if (!this._windowClone['has-pointer'] &&
!this.closeButton['has-pointer'])
if (!this._windowClone['has-pointer'])
this._animateInvisible();
this._idleHideOverlayId = 0;
return GLib.SOURCE_REMOVE;
}