[gnome-shell/gnome-3-28] overviewControls: Sync hover after drag operations
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-28] overviewControls: Sync hover after drag operations
- Date: Fri, 31 Aug 2018 14:28:19 +0000 (UTC)
commit 0b82388c49bf9d47c55651b58a991e5050709919
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Jul 20 18:51:40 2018 +0000
overviewControls: Sync hover after drag operations
During global grabs, actors miss enter and leave events required
for correct hover tracking. This can cause the workspace switcher
to get stuck while slid out, so ensure the actor's hover state is
synced after drag operations.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/161
(cherry picked from commit 328c63bf64ef13f477156db2ae1c657957259130)
js/ui/overviewControls.js | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js
index a2905abb9..1b1c9cf10 100644
--- a/js/ui/overviewControls.js
+++ b/js/ui/overviewControls.js
@@ -284,6 +284,11 @@ var ThumbnailsSlider = new Lang.Class({
return child.get_theme_node().get_length('visible-width');
},
+ _onDragEnd() {
+ this.actor.sync_hover();
+ this.parent();
+ },
+
_getSlide() {
if (!this._visible)
return 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]