]> Pileus Git - ~andy/gtk/commitdiff
During drag and drop, set the event mask at ButtonPress time to include
authorMiguel de Icaza <miguel@nuclecu.unam.mx>
Wed, 8 Apr 1998 19:46:09 +0000 (19:46 +0000)
committerArturo Espinosa <unammx@src.gnome.org>
Wed, 8 Apr 1998 19:46:09 +0000 (19:46 +0000)
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.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/gdk.c
gdk/x11/gdkmain-x11.c

index 1190822ff0d53571c77bbe2839b89bbb905901f5..2eb4bc17edf68c43ce4ca74a6d08f593d3bb3336 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 1190822ff0d53571c77bbe2839b89bbb905901f5..2eb4bc17edf68c43ce4ca74a6d08f593d3bb3336 100644 (file)
@@ -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
index 1190822ff0d53571c77bbe2839b89bbb905901f5..2eb4bc17edf68c43ce4ca74a6d08f593d3bb3336 100644 (file)
@@ -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
index 1190822ff0d53571c77bbe2839b89bbb905901f5..2eb4bc17edf68c43ce4ca74a6d08f593d3bb3336 100644 (file)
@@ -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
index 1190822ff0d53571c77bbe2839b89bbb905901f5..2eb4bc17edf68c43ce4ca74a6d08f593d3bb3336 100644 (file)
@@ -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
index 1190822ff0d53571c77bbe2839b89bbb905901f5..2eb4bc17edf68c43ce4ca74a6d08f593d3bb3336 100644 (file)
@@ -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
index 1190822ff0d53571c77bbe2839b89bbb905901f5..2eb4bc17edf68c43ce4ca74a6d08f593d3bb3336 100644 (file)
@@ -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
index 6d5ae500b866da12fc33e84805d1289ba07306c0..323c737915c871937e23dcb2d0535df7504e714c 100644 (file)
--- 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);
index 6d5ae500b866da12fc33e84805d1289ba07306c0..323c737915c871937e23dcb2d0535df7504e714c 100644 (file)
@@ -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);