From 31ae1a0b5bb257c86cc2393e065ded8506b4ef4a Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Fri, 14 Dec 2012 14:30:31 +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 5a88679c9e..56c92db12a 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -1557,7 +1557,7 @@ gtk_main_do_event (GdkEvent *event) * then we send the event to the original event widget. * This is the key to implementing modality. */ - if (gtk_widget_is_sensitive (event_widget) && + if ((gtk_widget_is_sensitive (event_widget) || event->type == GDK_SCROLL) && gtk_widget_is_ancestor (event_widget, grab_widget)) grab_widget = event_widget; }