From 1ff6c49bd8e1407225f3f7c2317f49f71cb55631 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 23 2019 12:36:24 +0000 Subject: import gnome-shell-extensions-3.28.1-5.el7.1 --- diff --git a/SOURCES/0001-window-list-drop-button-grab-when-leaving-button.patch b/SOURCES/0001-window-list-drop-button-grab-when-leaving-button.patch new file mode 100644 index 0000000..b36896a --- /dev/null +++ b/SOURCES/0001-window-list-drop-button-grab-when-leaving-button.patch @@ -0,0 +1,42 @@ +From c12006de1af0edb5380b0870ffdfe41d4ff153f1 Mon Sep 17 00:00:00 2001 +From: Ray Strode +Date: Wed, 6 Mar 2019 16:35:14 -0500 +Subject: [PATCH] window-list: drop button grab when leaving button + +StButton doesn't always drop its grab, if the user releases the +mouse over the wrong part of the screen. + +This commit works around the problem by pretending the user +lift their finger from the mouse as soon as they leave the +boundaries of the button actor. +--- + extensions/window-list/extension.js | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js +index 716a324..af71e91 100644 +--- a/extensions/window-list/extension.js ++++ b/extensions/window-list/extension.js +@@ -227,6 +227,7 @@ class BaseButton { + this.actor.connect('allocation-changed', + this._updateIconGeometry.bind(this)); + this.actor.connect('clicked', this._onClicked.bind(this)); ++ this.actor.connect('leave-event', this._onLeave.bind(this)); + this.actor.connect('destroy', this._onDestroy.bind(this)); + this.actor.connect('popup-menu', this._onPopupMenu.bind(this)); + +@@ -261,6 +262,11 @@ class BaseButton { + throw new Error('Not implemented'); + } + ++ _onLeave(actor, button) { ++ this.actor.fake_release(); ++ return Clutter.EVENT_PROPAGATE; ++ } ++ + _canOpenPopupMenu() { + return true; + } +-- +1.8.3.1 + diff --git a/SPECS/gnome-shell-extensions.spec b/SPECS/gnome-shell-extensions.spec index 2a6b532..0b319fd 100644 --- a/SPECS/gnome-shell-extensions.spec +++ b/SPECS/gnome-shell-extensions.spec @@ -6,7 +6,7 @@ Name: gnome-shell-extensions Version: 3.28.1 -Release: 5%{?dist} +Release: 5%{?dist}.1 Summary: Modify and extend GNOME Shell functionality and behavior Group: User Interface/Desktops @@ -34,6 +34,7 @@ Patch5: 0001-apps-menu-Explicitly-set-label_actor.patch Patch6: resurrect-system-monitor.patch Patch7: 0001-data-drop-app-icon-styling.patch Patch11: 0001-Include-top-icons-in-classic-session.patch +Patch12: 0001-window-list-drop-button-grab-when-leaving-button.patch Patch99: 0001-Revert-data-Remove-nautilus-classic.patch @@ -490,6 +491,10 @@ fi %changelog +* Fri Mar 15 2019 Ray Strode - 3.28.1-6 +- Fix stuck grab bug + Resolves: #1697555 + * Tue Sep 04 2018 Ray Strode - 3.28.1-5 - Get rid of weird drop shadow next to app menu Resolves: #1599841