aboutsummaryrefslogtreecommitdiff
path: root/spawn.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-04-22 08:57:43 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-04-22 08:57:43 +0000
commit44b8bd236423d764611bb600739faf8d898ddf1f (patch)
tree6f82585736be7f3ead8faa74e438bac5c584ebce /spawn.c
parentgenerate-alt-random: assert that lines/cols/width/height are > 0 (diff)
generate-alt-random: wait for SIGWINCH if width/height is 0
If width/height (that is, the *pixel* values) are 0, that means we are early (or that foot is slow) - we’ve managed to reach this point before the foot window has been mapped. Or rather, before foot has loaded the primary fonts and calculated the cell geometry. But that, and the initial mapping of the window is tightly coupled. To handle this case, detect when width or height is 0, an then wait for SIGWINCH before trying again.
Diffstat (limited to 'spawn.c')
0 files changed, 0 insertions, 0 deletions