aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-03-06 23:30:51 +0100
committerMattias Andrée <maandree@operamail.com>2014-03-06 23:30:51 +0100
commita0763e0442c998db9f71074b35ba9a3376357bae (patch)
treef1bd43a5e69eb00bd3d449f9260d0c7fd2b9f306 /src
parentm (diff)
downloadxpybar-a0763e0442c998db9f71074b35ba9a3376357bae.tar.gz
xpybar-a0763e0442c998db9f71074b35ba9a3376357bae.tar.bz2
xpybar-a0763e0442c998db9f71074b35ba9a3376357bae.tar.xz
fix and use xkb lock keys
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/xkb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/xkb.py b/src/plugins/xkb.py
index 362dba0..004f1bf 100644
--- a/src/plugins/xkb.py
+++ b/src/plugins/xkb.py
@@ -50,7 +50,7 @@ class XKB:
'''
self.__root = get_screen().root
- lockkey = lambda lock : self.__display.keysym_to_keycode(Xlib.XK.string_to_keysym(lock + '_Lock'))
+ lockkey = lambda lock : get_display().keysym_to_keycode(Xlib.XK.string_to_keysym(lock + '_Lock'))
find = lambda array, item : (1 << array.index(item)) if item in array else -1
mods = [x[0] for x in get_display().get_modifier_mapping()]