From b240af3eb06ff8c921931b4c70cf870517a860ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 6 Mar 2024 13:51:45 +0100 Subject: [PATCH] Notify on desktop icon drags Resolves: RHEL-26989 --- 0001-desktop-icons-Notify-icon-drags.patch | 40 ++++++++++++++++++++++ gnome-shell-extensions.spec | 7 +++- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 0001-desktop-icons-Notify-icon-drags.patch diff --git a/0001-desktop-icons-Notify-icon-drags.patch b/0001-desktop-icons-Notify-icon-drags.patch new file mode 100644 index 0000000..7b3c1a5 --- /dev/null +++ b/0001-desktop-icons-Notify-icon-drags.patch @@ -0,0 +1,40 @@ +From 8389801814c84c797a29f986f15e7ea4dd27bccc Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Florian=20M=C3=BCllner?= +Date: Wed, 6 Mar 2024 13:48:49 +0100 +Subject: [PATCH] desktop-icons: Notify icon drags + +Components like the message tray will use the signal to hide +their layout actor from picks, so that it does no interfere +with the DND operation. +--- + extensions/desktop-icons/desktopManager.js | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/extensions/desktop-icons/desktopManager.js b/extensions/desktop-icons/desktopManager.js +index 75b2a22a..c3b3f7e4 100644 +--- a/extensions/desktop-icons/desktopManager.js ++++ b/extensions/desktop-icons/desktopManager.js +@@ -547,17 +547,20 @@ var DesktopManager = GObject.registerClass({ + this._draggableContainer.allocate_preferred_size(0, 0); + + this._draggable.startDrag(x, y, global.get_current_time(), event.get_event_sequence()); ++ Main.overview.beginItemDrag(this._draggableContainer); + } + + _onDragCancelled() { + let event = Clutter.get_current_event(); + let [x, y] = event.get_coords(); + this._dragCancelled = true; ++ Main.overview.cancelledItemDrag(this._draggableContainer); + } + + _onDragEnd() { + this._inDrag = false; + Main.layoutManager.uiGroup.remove_child(this._draggableContainer); ++ Main.overview.endItemDrag(this._draggableContainer); + } + + _dragActorDropped(event) { +-- +2.44.0 + diff --git a/gnome-shell-extensions.spec b/gnome-shell-extensions.spec index 0fe98fa..e940993 100644 --- a/gnome-shell-extensions.spec +++ b/gnome-shell-extensions.spec @@ -7,7 +7,7 @@ Name: gnome-shell-extensions Version: 40.7 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Modify and extend GNOME Shell functionality and behavior License: GPLv2+ @@ -43,6 +43,7 @@ Patch020: 0001-window-list-Explicitly-dispose-settings-on-destroy.patch Patch021: 0001-desktop-icons-Don-t-try-spawn-with-non-existent-work.patch Patch022: 0001-docking-Only-remove-spacer-if-necessary.patch Patch023: 0001-classification-banner-Hide-from-picks.patch +Patch024: 0001-desktop-icons-Notify-icon-drags.patch %description GNOME Shell Extensions is a collection of extensions providing additional and @@ -446,6 +447,10 @@ workspaces. %changelog +* Wed Mar 06 2024 Florian Müllner - 40.7-13 +- Notify on desktop icon drags + Resolves: RHEL-26989 + * Fri Feb 02 2024 Florian Müllner - 40.7-12 - Hide classification banners from picks Resolves: RHEL-22789