From a0763e0442c998db9f71074b35ba9a3376357bae Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 6 Mar 2014 23:30:51 +0100 Subject: fix and use xkb lock keys MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/plugins/xkb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins') 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()] -- cgit v1.2.3-70-g09d2