From f5a9b25cf67061c00c6457ab9c42ec79f9902d76 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 16 May 2014 17:31:46 +0200 Subject: do not toggle when dying 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/x-window-focus') diff --git a/examples/x-window-focus b/examples/x-window-focus index 119b832..e08442e 100644 --- a/examples/x-window-focus +++ b/examples/x-window-focus @@ -95,7 +95,7 @@ def x_window_focus_thread_function(proc): should_be_disabled = True # Perhaps toggle - if red_running and (should_be_disabled == red_status): + if red_running and (should_be_disabled == red_status) and not red_dying: if red_status or we_disabled: we_disabled = should_be_disabled proc.send_signal(signal.SIGUSR1) -- cgit v1.2.3-70-g09d2