aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-04-17 06:35:58 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-04-17 07:14:52 +0000
commit7c20fb247c977fe545b1ef0ce9d8935b0424bf70 (patch)
treeaa563dfad841a42bf0da2eb1908678d64885a84e /utils
parentci: set explicit 'event' filters an all 'when'-statements (diff)
term: stash last known DPI, and use after a unmapped/mapped sequence
A compositor may unmap, and then remap the window, for example when the window is minimized, or if the user switches workspace. With DPI aware rendering, we *need* to know on which output we're mapped, in order to use the correct DPI. This means the first frame we render, before being mapped, always guesses the DPI. In an unmap/map sequence, guessing the wrong DPI means the window will flicker. Fix by stashing the last used DPI value, and use that instead of guessing. This means the *only* time we _actually_ guess the DPI, is the very first frame, when starting up foot.
Diffstat (limited to 'utils')
0 files changed, 0 insertions, 0 deletions