From 7680d6d24de9b049dfe8f322bf97fec820734fb9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 16 May 2014 18:43:26 +0200 Subject: m misc + add freeze/thaw 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'examples/x-window-focus') diff --git a/examples/x-window-focus b/examples/x-window-focus index e08442e..9d341ff 100644 --- a/examples/x-window-focus +++ b/examples/x-window-focus @@ -29,6 +29,9 @@ import threading import Xlib.display +# TODO: cannot re-exec when this script is used +# TODO: does not wait with toggling of redshift is froozen + def x_window_focus_thread_function(proc): ''' @@ -95,7 +98,7 @@ def x_window_focus_thread_function(proc): should_be_disabled = True # Perhaps toggle - if red_running and (should_be_disabled == red_status) and not red_dying: + if red_running and (should_be_disabled == red_status) and (not red_dying) and (not red_froozen): if red_status or we_disabled: we_disabled = should_be_disabled proc.send_signal(signal.SIGUSR1) -- cgit v1.2.3-70-g09d2