diff options
author | Miguel de Icaza <miguel@nuclecu.unam.mx> | 1998-04-08 19:46:09 +0000 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-04-08 19:46:09 +0000 |
commit | 09d32399abfccb7d7c42ea60463baf1956e432c4 (patch) | |
tree | 5b8a59be666c0fff71016543c6f050407c5180fd | |
parent | c492bd10e807923103ec8e9e8e4ccf4476c8973a (diff) | |
download | gtk+-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.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-0 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-2 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-4 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 7 | ||||
-rw-r--r-- | gdk/gdk.c | 2 | ||||
-rw-r--r-- | gdk/x11/gdkmain-x11.c | 2 |
9 files changed, 51 insertions, 2 deletions
@@ -1,3 +1,10 @@ +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. + Tue Apr 7 22:45:37 PDT 1998 Shawn T. Amundson <amundson@gtk.org> * Released GTK+ 0.99.10 diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 1190822ff0..2eb4bc17ed 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,10 @@ +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. + Tue Apr 7 22:45:37 PDT 1998 Shawn T. Amundson <amundson@gtk.org> * Released GTK+ 0.99.10 diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 1190822ff0..2eb4bc17ed 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,10 @@ +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. + Tue Apr 7 22:45:37 PDT 1998 Shawn T. Amundson <amundson@gtk.org> * Released GTK+ 0.99.10 diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 1190822ff0..2eb4bc17ed 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,10 @@ +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. + Tue Apr 7 22:45:37 PDT 1998 Shawn T. Amundson <amundson@gtk.org> * Released GTK+ 0.99.10 diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 1190822ff0..2eb4bc17ed 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,10 @@ +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. + Tue Apr 7 22:45:37 PDT 1998 Shawn T. Amundson <amundson@gtk.org> * Released GTK+ 0.99.10 diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 1190822ff0..2eb4bc17ed 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,10 @@ +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. + Tue Apr 7 22:45:37 PDT 1998 Shawn T. Amundson <amundson@gtk.org> * Released GTK+ 0.99.10 diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 1190822ff0..2eb4bc17ed 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,10 @@ +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. + Tue Apr 7 22:45:37 PDT 1998 Shawn T. Amundson <amundson@gtk.org> * Released GTK+ 0.99.10 @@ -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); |