Suppress redisplay on invalidation
commit4b3a197618c5bae07ae7dc6d6bbeca5a0f0b9946
authormalc <moosotc@gmail.com>
Thu, 28 Jul 2016 01:39:23 +0000 (28 04:39 +0300)
committermalc <moosotc@gmail.com>
Thu, 28 Jul 2016 01:39:23 +0000 (28 04:39 +0300)
treeba4bddfe841ae5eec04122be901e82eea9251f9e
parent46b7faa71852982790d66bca7f348346677c9a23
Suppress redisplay on invalidation

We can end up in a situation when throttling is active, redisplay is
scheduled (if post-processing fails) and then invalidate is called -
resulting in an empty layout and consequently flickering.

This is probably the third time when post-processing intricacies
lead to nasty visual issues.

Reproducer:

mkfifo /tmp/fifo
llpp some.pdf -remote /tmp/fifo &
echo 'keys ctrl-0' >/tmp/fifo
for i in $(seq 1 100); do
    echo 'keys ctrl-+' >/tmp/fifo;
    sleep 0.01;
done;
main.ml