aboutsummaryrefslogtreecommitdiff
path: root/debug.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-08-18 14:39:00 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-08-18 14:48:18 +0000
commit86ef638102a6e03a5f46326162376c964ad353af (patch)
tree4ec30d8544575e39c898a28d4681408440516ede /debug.c
parentci: replace 'pipeline' with 'steps' (diff)
term: improve fallback logic when selecting scaling factor while unmapped
The foot window may, for various reasons, become completely unmapped (that is, being removed from all outputs) at run time. One example is wlroots based compositors; they unmap all other windows when an opaque window is fullscreened. 21d99f8dced335826964ca96b8ba7ccac059e598 introduced a regression, where instead of picking the scaling factor from one of the available outputs (at random), we started falling back to '1' as soon as we were unmapped. This patch restores the original logic, but also improves upon it. As soon as a scaling factor has been assigned to the window, we store a copy of it in the term struct ('scale_before_unmap'). When unmapped, we check if it has a valid value (the only time it doesn't is before the initial map). If so, we use it. Only if it hasn't been set do we fall back to picking an output at random, and using its scaling factor. Closes #1464
Diffstat (limited to 'debug.c')
0 files changed, 0 insertions, 0 deletions