summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-06 05:37:47 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-06 05:37:47 +0200
commita5a4cea9794406b51d79c4c841b05a58709e4559 (patch)
tree2b3ca2dda2b8bcd7d53c92c752ee376c51594f23 /src
parentm (diff)
downloadblueshift-a5a4cea9794406b51d79c4c841b05a58709e4559.tar.gz
blueshift-a5a4cea9794406b51d79c4c841b05a58709e4559.tar.bz2
blueshift-a5a4cea9794406b51d79c4c841b05a58709e4559.tar.xz
how did I not catch this regression bug before now
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rwxr-xr-xsrc/__main__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/__main__.py b/src/__main__.py
index e5b3203..cf4d619 100755
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -433,7 +433,7 @@ def continuous_run():
with_fadein = lambda : (fadein_steps > 0) and (fadein_time is not None) and not panicgate
with_fadeout = lambda : (fadeout_steps > 0) and (fadeout_time is not None)
- try:
+ try: # TODO why does it look like there is a small jump at the beginning?
## Run until we get a signal to exit
# When the program start we are fading in,
# than we run in normal periodical state.
@@ -456,7 +456,7 @@ def continuous_run():
# If we are using fading,
if with_fadein():
# and just started
- if trans_alpha == 0:
+ if trans_alpha == 1:
# Apply fully clean adjustments,
p(now(), 1 - trans_alpha)
# and and sleep for a short period.
@@ -466,7 +466,7 @@ def continuous_run():
# If we are not fading, which might actually
# have beend should from `periodically`, which
# is invoked by `p`,
- if not with_fadein():
+ if (not with_fadein()) or (trans_alpha < 0):
# The jump to adjusted state and
# stop transitioning
trans_alpha = trans_delta = 0