From 004bb5896c53c045ee80e007e34f9246896748aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Andr=C3=A9e?= Date: Sun, 4 May 2014 13:04:37 +0200 Subject: [PATCH] Do not apply gamma changes while disabled and not in a transition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/redshift.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redshift.c b/src/redshift.c index beecd353..7609ed48 100644 --- a/src/redshift.c +++ b/src/redshift.c @@ -1351,7 +1351,7 @@ main(int argc, char *argv[]) } /* Adjust temperature */ - if (!disabled || short_trans) { + if (!disabled || (short_trans && !short_trans_done)) { r = method->set_temperature(&state, temp, brightness, gamma);