summaryrefslogtreecommitdiff
path: root/gtk/gtkdnd.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-06-13 15:56:20 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-06-13 15:56:20 +0000
commitddfd42fbb31c8389fb83768970884b97228bfedd (patch)
treebf8e937f295c300088595f0302e46722627f8085 /gtk/gtkdnd.c
parent325e571a3f8b253edd32bc6fcb841d853c9e18d0 (diff)
downloadgtk+-ddfd42fbb31c8389fb83768970884b97228bfedd.tar.gz
Save the initial grab time, use that when changing the pointer. (#83052,
Thu Jun 13 11:36:37 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Save the initial grab time, use that when changing the pointer. (#83052, help from Dave Camp tracking it down.)
Diffstat (limited to 'gtk/gtkdnd.c')
-rw-r--r--gtk/gtkdnd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index 91949373ad..09af044ad8 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -94,6 +94,7 @@ struct _GtkDragSourceInfo
gint start_x, start_y; /* Initial position */
gint cur_x, cur_y; /* Current Position */
+ guint32 grab_time; /* timestamp for initial grab */
GList *selections; /* selections we've claimed */
GtkDragDestInfo *proxy_dest; /* Set if this is a proxy drag */
@@ -1903,6 +1904,7 @@ gtk_drag_begin (GtkWidget *widget,
}
info->have_grab = TRUE;
+ info->grab_time = time;
return info->context;
}
@@ -2474,7 +2476,7 @@ _gtk_drag_source_handle_event (GtkWidget *widget,
GDK_POINTER_MOTION_HINT_MASK |
GDK_BUTTON_RELEASE_MASK,
NULL,
- cursor, event->dnd.time);
+ cursor, info->grab_time);
info->cursor = cursor;
}