summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-26 13:45:13 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-26 13:45:13 +0200
commite279b5e010bebbb9a21b63b4332446a772c64289 (patch)
tree86e8e2716bf1d172d40cab6a44a2e2b432b4cda0 /examples
parentm (diff)
downloadblueshift-e279b5e010bebbb9a21b63b4332446a772c64289.tar.gz
blueshift-e279b5e010bebbb9a21b63b4332446a772c64289.tar.bz2
blueshift-e279b5e010bebbb9a21b63b4332446a772c64289.tar.xz
external (?) bug workaround
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/x-window-focus6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/x-window-focus b/examples/x-window-focus
index 5b2a685..81e75d9 100644
--- a/examples/x-window-focus
+++ b/examples/x-window-focus
@@ -129,7 +129,11 @@ def periodically(year, month, day, hour, minute, second, weekday, fade):
# Get window specifications
wm_class = window.get_wm_class()
- wm_name = window.get_wm_name()
+ wm_name = None
+ try:
+ wm_name = window.get_wm_name()
+ except:
+ pass ## Buf in python3-xlib (?)
if (wm_class is None) and (wm_name is None):
x_display.next_event()
return