chiark / gitweb /
terminal/screen: adjust screen age only on update
authorDavid Herrmann <dh.herrmann@gmail.com>
Fri, 3 Oct 2014 13:27:25 +0000 (15:27 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Fri, 3 Oct 2014 13:57:00 +0000 (15:57 +0200)
commitce04e2335ab80eda5674de3399aa16b5aea2657f
tree949e3e38ee38d57c7d63cd85f6a326d7e7f5a8a8
parent56dec05d29098b151421625c68525c2c3961e574
terminal/screen: adjust screen age only on update

Instead of increasing the screen-age on redraw, we now increase it only on
real updates. This is effectively the same, but avoids increased age
counters on backbuffer rendering. Therefore, we can now check age counters
against fronbuffers safely, while rendering frames in background.
src/libsystemd-terminal/term-screen.c
src/libsystemd-terminal/term.h