From 148e7663341edbb31ea03cdb2c82bccf8003ef02 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Tue, 23 Feb 1999 00:43:26 +0000 Subject: When sending events to windows with a proxy, set the window field in the Mon Feb 22 19:06:30 1999 Owen Taylor * gdk/gdkdnd.c (xdnd_send_*): When sending events to windows with a proxy, set the window field in the sent event to the original window, not to the proxy. (This gives consistency with Motif, and also provides information to the destination that it wouldn't have otherwise). * gtk/gtkdnd.c: Fixed some refcount leaks for windows. * gdk/gdkdnd.c (xdnd_send_xevent): When sending Xdnd event to the root window, set the event mask to ButtonPressMask. Hopefully, this should give us compatibility with kfm, if it uses the Qt style of root window drops. --- gtk/gtkdnd.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gtk/gtkdnd.c') diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c index c82d449f7e..55103740a4 100644 --- a/gtk/gtkdnd.c +++ b/gtk/gtkdnd.c @@ -1385,6 +1385,9 @@ gtk_drag_dest_motion (GtkWidget *widget, context->suggested_action, context->actions, time); + if (!site->proxy_window && dest_window) + gdk_window_unref (dest_window); + selection = gdk_drag_get_selection (info->proxy_source->context); if (selection && selection != gdk_drag_get_selection (info->context)) @@ -1494,7 +1497,7 @@ gtk_drag_dest_drop (GtkWidget *widget, current_event->dnd.y_root, &dest_window, &proto); } - + gdk_drag_motion (info->proxy_source->context, dest_window, proto, current_event->dnd.x_root, @@ -1502,6 +1505,9 @@ gtk_drag_dest_drop (GtkWidget *widget, context->suggested_action, context->actions, time); + if (!site->proxy_window && dest_window) + gdk_window_unref (dest_window); + selection = gdk_drag_get_selection (info->proxy_source->context); if (selection && selection != gdk_drag_get_selection (info->context)) -- cgit v1.2.1