diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-03-06 23:30:51 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-03-06 23:30:51 +0100 |
commit | a0763e0442c998db9f71074b35ba9a3376357bae (patch) | |
tree | f1bd43a5e69eb00bd3d449f9260d0c7fd2b9f306 /src | |
parent | m (diff) | |
download | xpybar-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.py | 2 |
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()] |