aboutsummaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'gtk')
-rw-r--r--gtk/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/main.c b/gtk/main.c
index a058e80..4369860 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -418,7 +418,8 @@ static gboolean key_press_cb(GtkWidget *w,
}
}
guint keyval;
- gdk_keymap_translate_keyboard_state(gdk_keymap_get_default(),
+ gdk_keymap_translate_keyboard_state(gdk_keymap_get_for_display(
+ gtk_widget_get_display(w)),
e->key.hardware_keycode,
0,
e->key.group,