diff options
author | Federico Mena Quintero <federico@nuclecu.unam.mx> | 1998-08-20 16:55:16 +0000 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-08-20 16:55:16 +0000 |
commit | cad57a6686b44e97031269fc22ef3cf9f5f317fc (patch) | |
tree | f7eb868bfaf7ea906873c531edf20ccd9965cb15 /gtk/gtkhandlebox.c | |
parent | e946fcf69d1e7b4697c53f7ba2590ad43df27450 (diff) | |
download | gdk-pixbuf-cad57a6686b44e97031269fc22ef3cf9f5f317fc.tar.gz |
Do not do anything if the event's window is not the bin window.
1998-08-20 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Do not do
anything if the event's window is not the bin window.
(gtk_handle_box_motion): Likewise.
Diffstat (limited to 'gtk/gtkhandlebox.c')
-rw-r--r-- | gtk/gtkhandlebox.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkhandlebox.c b/gtk/gtkhandlebox.c index 6dd34f117..18f0e32f3 100644 --- a/gtk/gtkhandlebox.c +++ b/gtk/gtkhandlebox.c @@ -793,6 +793,9 @@ gtk_handle_box_button_changed (GtkWidget *widget, hb = GTK_HANDLE_BOX (widget); + if (event->window != hb->bin_window) + return FALSE; + event_handled = FALSE; if (event->button == 1 && event->type == GDK_BUTTON_PRESS) @@ -878,6 +881,9 @@ gtk_handle_box_motion (GtkWidget *widget, if (!hb->in_drag) return FALSE; + if (event->window != hb->bin_window) + return FALSE; + ox = 0; oy = 0; gdk_window_get_origin (hb->float_window, &ox, &oy); |