summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@nuclecu.unam.mx>1998-04-08 19:46:09 +0000
committerArturo Espinosa <unammx@src.gnome.org>1998-04-08 19:46:09 +0000
commit09d32399abfccb7d7c42ea60463baf1956e432c4 (patch)
tree5b8a59be666c0fff71016543c6f050407c5180fd /gdk
parentc492bd10e807923103ec8e9e8e4ccf4476c8973a (diff)
downloadgtk+-09d32399abfccb7d7c42ea60463baf1956e432c4.tar.gz
During drag and drop, set the event mask at ButtonPress time to include
1998-04-08 Miguel de Icaza <miguel@nuclecu.unam.mx> * gdk/gdk.c (gdk_event_translate): During drag and drop, set the event mask at ButtonPress time to include ButtonPressMask and ButtonReleaseMask, otherwise, if the button is released, and we get a LeaveNotify event, it still thinks we are doing a drag.
Diffstat (limited to 'gdk')
-rw-r--r--gdk/gdk.c2
-rw-r--r--gdk/x11/gdkmain-x11.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gdk/gdk.c b/gdk/gdk.c
index 6d5ae500b8..323c737915 100644
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -1965,7 +1965,7 @@ gdk_event_translate (GdkEvent *event,
window_private->dnd_drag_savedeventmask = dnd_winattr.your_event_mask;
dnd_setwinattr.event_mask =
- window_private->dnd_drag_eventmask = ButtonMotionMask |
+ window_private->dnd_drag_eventmask = ButtonMotionMask | ButtonPressMask | ButtonReleaseMask |
EnterWindowMask | LeaveWindowMask;
XChangeWindowAttributes(gdk_display, window_private->xwindow,
CWEventMask, &dnd_setwinattr);
diff --git a/gdk/x11/gdkmain-x11.c b/gdk/x11/gdkmain-x11.c
index 6d5ae500b8..323c737915 100644
--- a/gdk/x11/gdkmain-x11.c
+++ b/gdk/x11/gdkmain-x11.c
@@ -1965,7 +1965,7 @@ gdk_event_translate (GdkEvent *event,
window_private->dnd_drag_savedeventmask = dnd_winattr.your_event_mask;
dnd_setwinattr.event_mask =
- window_private->dnd_drag_eventmask = ButtonMotionMask |
+ window_private->dnd_drag_eventmask = ButtonMotionMask | ButtonPressMask | ButtonReleaseMask |
EnterWindowMask | LeaveWindowMask;
XChangeWindowAttributes(gdk_display, window_private->xwindow,
CWEventMask, &dnd_setwinattr);