mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 14:50:06 +00:00
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
17a3325b2d
commit
343f1706bd
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user