summaryrefslogtreecommitdiff
path: root/cairo.c
diff options
context:
space:
mode:
authorManuel Stoeckl <code@mstoeckl.com>2021-09-26 13:16:03 -0400
committerSimon Ser <contact@emersion.fr>2021-10-01 09:15:35 +0200
commit5e2df3a600e07b71923c28a8cd51861289319c91 (patch)
tree166c000708fab436e46337cbbb7288a29206085c /cairo.c
parent96cf26d605d491d0cbb9e931c0bf8dcd28258e52 (diff)
downloadswaybg-5e2df3a600e07b71923c28a8cd51861289319c91.tar.gz
swaybg-5e2df3a600e07b71923c28a8cd51861289319c91.tar.bz2
Only render a new frame when the buffer size changes
The contents of the buffer associated to an output depend only on the output config (which does not change at runtime), and the buffer dimensions. When the compositor changes the output scale, it often sends a configure event which exactly compensates for the scale change, so that the size of the buffer needed for the surface remains the same. Thus no new frame needs to be rendered.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions