diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2018-06-07 16:25:34 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2018-06-21 12:52:59 +0200 |
commit | 3d5dc16d6372a0278976648f851a27a91536fd3a (patch) | |
tree | 0c372e44ff1f40e593717480ec08dda62f3befb4 /gtk/gtkmain.c | |
parent | 7bfc3a5c74742e541dc0451180056b6d647471f0 (diff) | |
download | gtk+-3d5dc16d6372a0278976648f851a27a91536fd3a.tar.gz |
gtkwindow: Simplify WM drag/resize handling
We still need a drag gesture both on front (capture) and back (bubble)
to handle dragging from both the GtkWindow widget and chrome in the
headerbar. But we can do it through 2 drag gestures, instead of special
event handling code.
Diffstat (limited to 'gtk/gtkmain.c')
-rw-r--r-- | gtk/gtkmain.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index 0f3639d139..05996399d3 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -1747,19 +1747,6 @@ gtk_main_do_event (GdkEvent *event) if (!grab_widget) grab_widget = gtk_window_group_get_current_grab (window_group); - if (GTK_IS_WINDOW (event_widget) || - (grab_widget && grab_widget != event_widget && - !gtk_widget_is_ancestor (event_widget, grab_widget))) - { - /* Ignore event if we got a grab on another toplevel */ - if (!grab_widget || - gtk_widget_get_toplevel (event_widget) == gtk_widget_get_toplevel (grab_widget)) - { - if (_gtk_window_check_handle_wm_event (event)) - goto cleanup; - } - } - /* If the grab widget is an ancestor of the event widget * then we send the event to the original event widget. * This is the key to implementing modality. |