From 13a9dd210af785683b20ac41c3b0d1118a0352c4 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 9 Jun 2005 17:13:58 +0000 Subject: [PATCH] Update the user time on the window when a drop happens. (#169364, 2005-06-09 Matthias Clasen * gdk/x11/gdkdnd-x11.c (motif_drop_start, xdnd_drop_filter): Update the user time on the window when a drop happens. (#169364, Alexander Hunziker, patch by Elijah Newren) --- ChangeLog | 4 ++++ ChangeLog.pre-2-10 | 4 ++++ ChangeLog.pre-2-8 | 4 ++++ gdk/x11/gdkdnd-x11.c | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5317b57c9f..474f8dce22 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2005-06-09 Matthias Clasen + * gdk/x11/gdkdnd-x11.c (motif_drop_start, xdnd_drop_filter): Update + the user time on the window when a drop happens. (#169364, Alexander + Hunziker, patch by Elijah Newren) + * gdk/x11/gdkwindow-x11.c: Small markup fixes. * gtk/gtk.symbols: diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 5317b57c9f..474f8dce22 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,9 @@ 2005-06-09 Matthias Clasen + * gdk/x11/gdkdnd-x11.c (motif_drop_start, xdnd_drop_filter): Update + the user time on the window when a drop happens. (#169364, Alexander + Hunziker, patch by Elijah Newren) + * gdk/x11/gdkwindow-x11.c: Small markup fixes. * gtk/gtk.symbols: diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 5317b57c9f..474f8dce22 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,9 @@ 2005-06-09 Matthias Clasen + * gdk/x11/gdkdnd-x11.c (motif_drop_start, xdnd_drop_filter): Update + the user time on the window when a drop happens. (#169364, Alexander + Hunziker, patch by Elijah Newren) + * gdk/x11/gdkwindow-x11.c: Small markup fixes. * gtk/gtk.symbols: diff --git a/gdk/x11/gdkdnd-x11.c b/gdk/x11/gdkdnd-x11.c index 1d844c2fef..b316cf1ad6 100644 --- a/gdk/x11/gdkdnd-x11.c +++ b/gdk/x11/gdkdnd-x11.c @@ -1741,6 +1741,8 @@ motif_drop_start (GdkEvent *event, event->dnd.x_root = x_root; event->dnd.y_root = y_root; + gdk_x11_window_set_user_time (event->any.window, timestamp); + g_object_ref (new_context); display_x11->current_dest_drag = new_context; @@ -2904,6 +2906,8 @@ xdnd_drop_filter (GdkXEvent *xev, event->dnd.time = time; event->dnd.x_root = private->last_x; event->dnd.y_root = private->last_y; + + gdk_x11_window_set_user_time (event->any.window, time); return GDK_FILTER_TRANSLATE; } -- GitLab