From 1781a1d26380e1743f17429e52944a966db0308d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 26 Apr 2014 13:50:46 +0200 Subject: derp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- examples/x-window-focus | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'examples/x-window-focus') 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): -- cgit v1.2.3-70-g09d2