Skip to content

Commit

Permalink
gtk: fix scrolling in modal dialogs when event_widget is insensitive
Browse files Browse the repository at this point in the history
When checking for modal grabs in gtk_main_do_event(), forward
GDK_SCROLL events to event_widget, even if it is insensitive.
  • Loading branch information
mitchfoo committed Dec 14, 2012
1 parent 17a3325 commit 343f170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gtk/gtkmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 343f170

Please sign in to comment.