[gtk+] x11: Handle motif client message filter just like xdnd filters
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] x11: Handle motif client message filter just like xdnd filters
- Date: Tue, 1 Feb 2011 05:33:25 +0000 (UTC)
commit d217f4d09e7d63c5e7d687e1d217e6b4a10d36c3
Author: Benjamin Otte <otte redhat com>
Date: Tue Feb 1 04:35:49 2011 +0100
x11: Handle motif client message filter just like xdnd filters
gdk/x11/gdkdnd-x11.c | 19 ++++++++-----------
1 files changed, 8 insertions(+), 11 deletions(-)
---
diff --git a/gdk/x11/gdkdnd-x11.c b/gdk/x11/gdkdnd-x11.c
index 4b8ee69..eab817f 100644
--- a/gdk/x11/gdkdnd-x11.c
+++ b/gdk/x11/gdkdnd-x11.c
@@ -146,12 +146,14 @@ static const struct {
const char *atom_name;
GdkFilterFunc func;
} xdnd_filters[] = {
- { "XdndEnter", xdnd_enter_filter },
- { "XdndLeave", xdnd_leave_filter },
- { "XdndPosition", xdnd_position_filter },
- { "XdndStatus", xdnd_status_filter },
- { "XdndFinished", xdnd_finished_filter },
- { "XdndDrop", xdnd_drop_filter },
+ { "_MOTIF_DRAG_AND_DROP_MESSAGE", motif_dnd_filter },
+
+ { "XdndEnter", xdnd_enter_filter },
+ { "XdndLeave", xdnd_leave_filter },
+ { "XdndPosition", xdnd_position_filter },
+ { "XdndStatus", xdnd_status_filter },
+ { "XdndFinished", xdnd_finished_filter },
+ { "XdndDrop", xdnd_drop_filter },
};
@@ -3132,11 +3134,6 @@ _gdk_x11_display_init_dnd (GdkDisplay *display)
int i;
init_byte_order ();
- gdk_display_add_client_message_filter (
- display,
- gdk_atom_intern_static_string ("_MOTIF_DRAG_AND_DROP_MESSAGE"),
- motif_dnd_filter, NULL);
-
for (i = 0; i < G_N_ELEMENTS (xdnd_filters); i++)
{
gdk_display_add_client_message_filter (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]