aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/compact4
-rw-r--r--src/plugins/xdisplay.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/compact b/examples/compact
index 7e08663..9c43d36 100644
--- a/examples/compact
+++ b/examples/compact
@@ -277,9 +277,9 @@ class MyXMonad(Entry):
UTF8_STRING = display.intern_atom('UTF8_STRING')
_XMONAD_LOG = display.intern_atom('_XMONAD_LOG')
_NET_DESKTOP_NAMES = display.intern_atom('_NET_DESKTOP_NAMES')
- xmonad_log = display.screen().root.get_full_property(_XMONAD_LOG, UTF8_STRING).value
+ xmonad_log = display.screen().root.get_full_property(_XMONAD_LOG, UTF8_STRING).value.decode('utf-8', 'replace')
xmonad_log = xmonad_log.split(' : ')
- net_desktop_names = display.screen().root.get_full_property(_NET_DESKTOP_NAMES, UTF8_STRING).value
+ net_desktop_names = display.screen().root.get_full_property(_NET_DESKTOP_NAMES, UTF8_STRING).value.decode('utf-8', 'replace')
net_desktop_names = net_desktop_names[:-1].split('\0')
ws = 0
ws_hit = False
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]