From 343f1706bd51b830ff66c67b163f397889a96758 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Fri, 14 Dec 2012 15:53:29 +0100 Subject: [PATCH] gtk: fix scrolling in modal dialogs when event_widget is insensitive When checking for modal grabs in gtk_main_do_event(), forward GDK_SCROLL events to event_widget, even if it is insensitive. --- gtk/gtkmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index 6cb174ead1..86cf7c8626 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -1555,7 +1555,7 @@ gtk_main_do_event (GdkEvent *event) * This is the key to implementing modality. */ if (!grab_widget || - (gtk_widget_is_sensitive (event_widget) && + ((gtk_widget_is_sensitive (event_widget) || event->type == GDK_SCROLL) && gtk_widget_is_ancestor (event_widget, grab_widget))) grab_widget = event_widget;