summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorey Berla <corey@berla.me>2022-07-07 13:05:07 -0700
committerCorey Berla <corey@berla.me>2022-07-07 18:32:50 -0700
commitf1b32261de96dc8bb5cd65c6b00e777d31f03410 (patch)
tree6fff3c7a8f09d4f4d6835e89e3dbe05d3d4fa429
parentbe6145a89710e88eb9a5f8bbc02f9892a9da6efb (diff)
downloadnautilus-f1b32261de96dc8bb5cd65c6b00e777d31f03410.tar.gz
list-base: Set hotspot coordinates for DragSource icon
We had the hotspot coordinates set to 0,0 because it's not working on wayland, but it does work for x11. Set the coordinates to x,y to fix x11 (wayland remains unchanged).
-rw-r--r--src/nautilus-list-base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nautilus-list-base.c b/src/nautilus-list-base.c
index 6f48d0e25..1fa649bcd 100644
--- a/src/nautilus-list-base.c
+++ b/src/nautilus-list-base.c
@@ -537,7 +537,7 @@ on_item_drag_prepare (GtkDragSource *source,
scale_factor = gtk_widget_get_scale_factor (GTK_WIDGET (self));
paintable = get_paintable_for_drag_selection (selection, scale_factor);
- gtk_drag_source_set_icon (source, paintable, 0, 0);
+ gtk_drag_source_set_icon (source, paintable, x, y);
return gdk_content_provider_new_typed (GDK_TYPE_FILE_LIST, file_list);
}