summaryrefslogtreecommitdiff
path: root/libview/ev-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'libview/ev-view.c')
-rw-r--r--libview/ev-view.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c
index ee24dd9d..70e78fa0 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -3945,9 +3945,11 @@ ev_view_motion_notify_event (GtkWidget *widget,
gtk_target_list_add_text_targets (target_list, TARGET_DND_TEXT);
- gtk_drag_begin (widget, target_list,
- GDK_ACTION_COPY,
- 1, (GdkEvent *)event);
+ gtk_drag_begin_with_coordinates (widget, target_list,
+ GDK_ACTION_COPY,
+ 1, (GdkEvent *)event,
+ event->x,
+ event->y);
view->selection_info.in_drag = FALSE;
@@ -3965,9 +3967,11 @@ ev_view_motion_notify_event (GtkWidget *widget,
gtk_target_list_add_uri_targets (target_list, TARGET_DND_URI);
gtk_target_list_add_image_targets (target_list, TARGET_DND_IMAGE, TRUE);
- gtk_drag_begin (widget, target_list,
- GDK_ACTION_COPY,
- 1, (GdkEvent *)event);
+ gtk_drag_begin_with_coordinates (widget, target_list,
+ GDK_ACTION_COPY,
+ 1, (GdkEvent *)event,
+ event->x,
+ event->y);
view->image_dnd_info.in_drag = FALSE;