diff options
author | Mattias Andrée <maandree@kth.se> | 2017-01-13 02:55:28 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2017-01-13 02:55:28 +0100 |
commit | c15632dc1cc5109e268df4f361e36720fab3cf77 (patch) | |
tree | 73fdc5112b38efd57bcf37c1d3a51e93d1d0a73a /src/plugins/xdisplay.py | |
parent | Work around bug in python-xlib, so new version of it can be used now that old versions cannot (diff) | |
download | xpybar-c15632dc1cc5109e268df4f361e36720fab3cf77.tar.gz xpybar-c15632dc1cc5109e268df4f361e36720fab3cf77.tar.bz2 xpybar-c15632dc1cc5109e268df4f361e36720fab3cf77.tar.xz |
Fix property reading for new version of python-xlib1.18.2
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/plugins/xdisplay.py')
-rw-r--r-- | src/plugins/xdisplay.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/xdisplay.py b/src/plugins/xdisplay.py index ca10f8b..722b144 100644 --- a/src/plugins/xdisplay.py +++ b/src/plugins/xdisplay.py @@ -60,5 +60,5 @@ class XDisplay: self.screen = None if self.screen == '' else int(self.screen) r = get_screen().root d = get_display() - self.vt = r.get_full_property(d.get_atom('XFree86_VT'), Xlib.Xatom.INTEGER).value[0] + self.vt = r.get_full_property(d.get_atom('XFree86_VT'), Xlib.Xatom.INTEGER).value.decode('utf-8', 'replace')[0] |