forked from AuroraMiddleware/gtk
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:
parent
e8535149e4
commit
31ae1a0b5b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user