[nautilus] list-base: Set hotspot coordinates for DragSource icon
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] list-base: Set hotspot coordinates for DragSource icon
- Date: Sat, 9 Jul 2022 17:55:17 +0000 (UTC)
commit f1b32261de96dc8bb5cd65c6b00e777d31f03410
Author: Corey Berla <corey berla me>
Date: Thu Jul 7 13:05:07 2022 -0700
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).
src/nautilus-list-base.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]