summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gs-lock-plug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gs-lock-plug.c b/src/gs-lock-plug.c
index 0dbd32e..0f531e2 100644
--- a/src/gs-lock-plug.c
+++ b/src/gs-lock-plug.c
@@ -450,7 +450,7 @@ is_capslock_on (void)
res = FALSE;
- keymap = gdk_keymap_get_default ();
+ keymap = gdk_keymap_get_for_display (gdk_display_get_default ());
if (keymap != NULL) {
res = gdk_keymap_get_caps_lock_state (keymap);
}