[gnome-shell/gbsneto/folder-dialog-improvements: 21/30] appDisplay: Pop folder dialog down when dragging out
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/folder-dialog-improvements: 21/30] appDisplay: Pop folder dialog down when dragging out
- Date: Sun, 7 Jun 2020 03:59:52 +0000 (UTC)
commit 00a8f7c9431b8ecddd35ef4c7abdb3ff2b800e9f
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sun Jun 7 00:54:06 2020 -0300
appDisplay: Pop folder dialog down when dragging out
Now that the folder dialog covers the entirety of the primary
monitor, it's impossible to move icons inside folders to the
Dash.
Popdown the folder dialog when dragging out. This allows both
removing the app icon from the folder, and also dragging it
to the Dash.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1301
js/ui/appDisplay.js | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index b73faac147..6ee1bb9cc5 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1752,6 +1752,8 @@ var AppFolderDialog = GObject.registerClass({
handleDragOver(source, actor, x, y, timestamp) {
if (this._withinDialog(x, y))
return DND.DragMotionResult.NO_DROP;
+
+ this.popdown();
return this._appDisplay.handleDragOver(source, actor, x, y, timestamp);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]