summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-07-12 19:31:06 +0200
committerZenWalker <[email protected]>2018-07-14 01:20:45 +0200
commit0d51a73058e036449525d4210eb400b8086bcaa3 (patch)
tree3cd424682120f89882c0f8199ca1343c5f951f58
parent44f1d4cb4af5194209333d5eeeb594aeef49add1 (diff)
downloadmate-screensaver-0d51a73058e036449525d4210eb400b8086bcaa3.tar.bz2
mate-screensaver-0d51a73058e036449525d4210eb400b8086bcaa3.tar.xz
gs-lock-plug: avoid deprecated 'gdk_keymap_get_default'
-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);
}