summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gtk/src/presets.c5
-rw-r--r--gtk/src/queuehandler.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/gtk/src/presets.c b/gtk/src/presets.c
index fead949bf..aef862f2c 100644
--- a/gtk/src/presets.c
+++ b/gtk/src/presets.c
@@ -3071,6 +3071,11 @@ presets_drag_motion_cb(
gboolean src_folder, dst_folder;
GValue *preset;
gint tree_depth, ii;
+ GtkWidget *widget;
+
+ widget = gtk_drag_get_source_widget(ctx);
+ if (widget == NULL || widget != tv)
+ return TRUE;
// Get the type of the object being dragged
srctv = GTK_TREE_VIEW(gtk_drag_get_source_widget(ctx));
diff --git a/gtk/src/queuehandler.c b/gtk/src/queuehandler.c
index aed2b0790..a6c9f466b 100644
--- a/gtk/src/queuehandler.c
+++ b/gtk/src/queuehandler.c
@@ -778,6 +778,11 @@ queue_drag_motion_cb(
GtkTreeView *srctv;
GtkTreeModel *model;
GtkTreeSelection *select;
+ GtkWidget *widget;
+
+ widget = gtk_drag_get_source_widget(ctx);
+ if (widget == NULL || widget != tv)
+ return TRUE;
// This bit checks to see if the source is allowed to be
// moved. Only pending and canceled items may be moved.