diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-04-26 13:50:46 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-04-26 13:50:46 +0200 |
commit | 1781a1d26380e1743f17429e52944a966db0308d (patch) | |
tree | 5dc5f07c15c082ed61c3f268665df491a4213d80 | |
parent | update dist (diff) | |
download | nightshift-1781a1d26380e1743f17429e52944a966db0308d.tar.gz nightshift-1781a1d26380e1743f17429e52944a966db0308d.tar.bz2 nightshift-1781a1d26380e1743f17429e52944a966db0308d.tar.xz |
derp0.4.1
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r-- | examples/x-window-focus | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/x-window-focus b/examples/x-window-focus index 3148a80..119b832 100644 --- a/examples/x-window-focus +++ b/examples/x-window-focus @@ -77,10 +77,9 @@ def x_window_focus_thread_function(proc): wm_name) #sys.stderr.buffer.write((repr(window) + '\n').encode('utf-8')) #sys.stderr.buffer.flush() - finally: - pass - #x_display.next_event() - #continue + except: + x_display.next_event() + continue # Check that something changed if (last is not None) and (last == window): |