Skip to content
Permalink
Browse files

gs-lock-plug: avoid deprecated 'gdk_keymap_get_default'

  • Loading branch information...
sc0w committed Jul 12, 2018
1 parent 44f1d4c commit 0d51a73058e036449525d4210eb400b8086bcaa3
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);
}

0 comments on commit 0d51a73

Please sign in to comment.
You can’t perform that action at this time.