diff options
author | Miguel de Icaza <miguel@nuclecu.unam.mx> | 1998-03-17 07:54:57 +0000 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-03-17 07:54:57 +0000 |
commit | 8a0d67391c6f7c627abd2077c713dd2f40ccc6f4 (patch) | |
tree | 1326bbec0440562192dce762f76f963cfc0176ae /gdk | |
parent | 63955ec2e2c8f43daa6f4832b9f535adbdecd34f (diff) | |
download | gtk+-8a0d67391c6f7c627abd2077c713dd2f40ccc6f4.tar.gz |
Use StructureNotifyMaskMask as the mask, as this enables an application
Tue Mar 17 02:02:02 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdk/gdk.c (gdk_dnd_drag_leave): Use StructureNotifyMaskMask as
the mask, as this enables an application listening to those events
to catch the root events. Thanks to Maciej for pointing us in the
right direction.
(gdk_dnd_drag_enter): Likewise.
(gdk_dnd_drag_leave): Likewise.
* gdk/gdkwindow.c (gdk_window_dnd_data_set): Likewise.
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/gdk.c | 4 | ||||
-rw-r--r-- | gdk/gdkwindow.c | 3 | ||||
-rw-r--r-- | gdk/x11/gdkmain-x11.c | 4 | ||||
-rw-r--r-- | gdk/x11/gdkwindow-x11.c | 3 |
4 files changed, 8 insertions, 6 deletions
@@ -3192,7 +3192,7 @@ gdk_dnd_drag_enter (Window dest) } else sev.xclient.data.l[3] = sev.xclient.data.l[4] = None; - if (!gdk_send_xevent (dest, False, NoEventMask, &sev)) + if (!gdk_send_xevent (dest, False, StructureNotifyMask, &sev)) GDK_NOTE (DND, g_print("Sending XdeEnter to %#lx failed\n", dest)); } @@ -3750,7 +3750,7 @@ gdk_dnd_drag_leave (Window dest) { wp = (GdkWindowPrivate *) gdk_dnd.drag_startwindows[i]; sev.xclient.data.l[0] = wp->xwindow; - if (!gdk_send_xevent (dest, False, NoEventMask, &sev)) + if (!gdk_send_xevent (dest, False, StructureNotifyMask, &sev)) GDK_NOTE (DND, g_print("Sending XdeLeave to %#lx failed\n", dest)); wp->dnd_drag_accepted = 0; diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index 3ce3beccbb..e3680a95fe 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -15,6 +15,7 @@ * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/Xatom.h> @@ -1647,7 +1648,7 @@ gdk_window_dnd_data_set (GdkWindow *window, sev.xclient.data.l[4] = event->dragrequest.timestamp; if (!gdk_send_xevent (event->dragrequest.requestor, False, - NoEventMask, &sev)) + StructureNotifyMask, &sev)) GDK_NOTE (DND, g_print("Sending XdeDataAvailable to %#x failed\n", event->dragrequest.requestor)); diff --git a/gdk/x11/gdkmain-x11.c b/gdk/x11/gdkmain-x11.c index e97e5fdb36..c75801b83b 100644 --- a/gdk/x11/gdkmain-x11.c +++ b/gdk/x11/gdkmain-x11.c @@ -3192,7 +3192,7 @@ gdk_dnd_drag_enter (Window dest) } else sev.xclient.data.l[3] = sev.xclient.data.l[4] = None; - if (!gdk_send_xevent (dest, False, NoEventMask, &sev)) + if (!gdk_send_xevent (dest, False, StructureNotifyMask, &sev)) GDK_NOTE (DND, g_print("Sending XdeEnter to %#lx failed\n", dest)); } @@ -3750,7 +3750,7 @@ gdk_dnd_drag_leave (Window dest) { wp = (GdkWindowPrivate *) gdk_dnd.drag_startwindows[i]; sev.xclient.data.l[0] = wp->xwindow; - if (!gdk_send_xevent (dest, False, NoEventMask, &sev)) + if (!gdk_send_xevent (dest, False, StructureNotifyMask, &sev)) GDK_NOTE (DND, g_print("Sending XdeLeave to %#lx failed\n", dest)); wp->dnd_drag_accepted = 0; diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c index 3ce3beccbb..e3680a95fe 100644 --- a/gdk/x11/gdkwindow-x11.c +++ b/gdk/x11/gdkwindow-x11.c @@ -15,6 +15,7 @@ * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/Xatom.h> @@ -1647,7 +1648,7 @@ gdk_window_dnd_data_set (GdkWindow *window, sev.xclient.data.l[4] = event->dragrequest.timestamp; if (!gdk_send_xevent (event->dragrequest.requestor, False, - NoEventMask, &sev)) + StructureNotifyMask, &sev)) GDK_NOTE (DND, g_print("Sending XdeDataAvailable to %#x failed\n", event->dragrequest.requestor)); |