Skip to content

Commit 0d51a73

Browse files
committed
gs-lock-plug: avoid deprecated 'gdk_keymap_get_default'
1 parent 44f1d4c commit 0d51a73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gs-lock-plug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ is_capslock_on (void)
450450

451451
res = FALSE;
452452

453-
keymap = gdk_keymap_get_default ();
453+
keymap = gdk_keymap_get_for_display (gdk_display_get_default ());
454454
if (keymap != NULL) {
455455
res = gdk_keymap_get_caps_lock_state (keymap);
456456
}

0 commit comments

Comments
 (0)