diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-04-22 21:39:18 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-05-28 20:25:13 +0000 |
commit | 66ccc825de0f88edb6eea87ab296f64967443a6c (patch) | |
tree | 65be8c8565d8dec93ee57e09e4ae3956c89d1dcb /gtk/gtkmain.c | |
parent | 580aa8204f457689cbe09341f244d24baf406db8 (diff) | |
download | gtk+-66ccc825de0f88edb6eea87ab296f64967443a6c.tar.gz |
main: Remove special-case hiding popopvers
This is now happening in GDK, so we don't have
to do this here anymore.
Diffstat (limited to 'gtk/gtkmain.c')
-rw-r--r-- | gtk/gtkmain.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index d77b04a3a8..de3a84ecf6 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -1332,27 +1332,6 @@ rewrite_event_for_grabs (GdkEvent *event) event_widget = gtk_get_event_widget (event); grab_widget = gtk_native_get_for_surface (grab_surface); - switch ((guint) event->any.type) - { - case GDK_BUTTON_PRESS: - case GDK_BUTTON_RELEASE: - case GDK_KEY_PRESS: - case GDK_KEY_RELEASE: - case GDK_TOUCH_BEGIN: - case GDK_TOUCH_END: - case GDK_TOUCH_CANCEL: - case GDK_TOUCHPAD_SWIPE: - case GDK_TOUCHPAD_PINCH: - if (grab_surface != event->any.surface && - GTK_IS_POPOVER (grab_widget)) - { - gtk_widget_hide (grab_widget); - return NULL; - } - break; - default:; - } - if (grab_widget && gtk_main_get_window_group (grab_widget) != gtk_main_get_window_group (event_widget)) return rewrite_event_for_surface (event, grab_surface); |