forked from AuroraMiddleware/gtk
x11: Handle motif client message filter just like xdnd filters
This commit is contained in:
parent
14cb485d22
commit
d217f4d09e
@ -146,12 +146,14 @@ static const struct {
|
|||||||
const char *atom_name;
|
const char *atom_name;
|
||||||
GdkFilterFunc func;
|
GdkFilterFunc func;
|
||||||
} xdnd_filters[] = {
|
} xdnd_filters[] = {
|
||||||
{ "XdndEnter", xdnd_enter_filter },
|
{ "_MOTIF_DRAG_AND_DROP_MESSAGE", motif_dnd_filter },
|
||||||
{ "XdndLeave", xdnd_leave_filter },
|
|
||||||
{ "XdndPosition", xdnd_position_filter },
|
{ "XdndEnter", xdnd_enter_filter },
|
||||||
{ "XdndStatus", xdnd_status_filter },
|
{ "XdndLeave", xdnd_leave_filter },
|
||||||
{ "XdndFinished", xdnd_finished_filter },
|
{ "XdndPosition", xdnd_position_filter },
|
||||||
{ "XdndDrop", xdnd_drop_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;
|
int i;
|
||||||
init_byte_order ();
|
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++)
|
for (i = 0; i < G_N_ELEMENTS (xdnd_filters); i++)
|
||||||
{
|
{
|
||||||
gdk_display_add_client_message_filter (
|
gdk_display_add_client_message_filter (
|
||||||
|
Loading…
Reference in New Issue
Block a user