diff options
Diffstat (limited to 'gtk/gtkmnemonichash.c')
-rw-r--r-- | gtk/gtkmnemonichash.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkmnemonichash.c b/gtk/gtkmnemonichash.c index c9f38408c8..705484aded 100644 --- a/gtk/gtkmnemonichash.c +++ b/gtk/gtkmnemonichash.c @@ -127,7 +127,9 @@ _gtk_mnemonic_hash_activate (GtkMnemonicHash *mnemonic_hash, widget = GTK_WIDGET (list->data); if (GTK_WIDGET_IS_SENSITIVE (widget) && - GTK_WIDGET_MAPPED (widget)) + GTK_WIDGET_MAPPED (widget) && + widget->window && + gdk_window_is_viewable (widget->window)) { if (chosen_widget) { |