[gtk/wip/matthiasc/popup5: 25/150] main: Remove special-case hiding popopvers
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup5: 25/150] main: Remove special-case hiding popopvers
- Date: Fri, 24 May 2019 02:00:17 +0000 (UTC)
commit 627f3c731d29bd0f23fecb1aab93d120165bf9fb
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Apr 22 21:39:18 2019 +0000
main: Remove special-case hiding popopvers
This is now happening in GDK, so we don't have
to do this here anymore.
gtk/gtkmain.c | 21 ---------------------
1 file changed, 21 deletions(-)
---
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 264999404b..ffc2168ce6 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -1331,27 +1331,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]