Skip to content

Commit

Permalink
gs-lock-plug: avoid deprecated 'gdk_keymap_get_default'
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w committed Jul 13, 2018
1 parent 44f1d4c commit 0d51a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gs-lock-plug.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0d51a73

Please sign in to comment.