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.
This commit is contained in:
Michael Natterer 2012-12-14 15:53:29 +01:00
parent 17a3325b2d
commit 343f1706bd

View File

@ -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;