aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-10-01 07:20:13 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-10-01 07:20:13 +0000
commitb95a7cb84f9bebdd99ac68d30fa8256cc60dc7ca (patch)
treee8a779e4492310c482f212a499b1cdad385c32b3 /CHANGELOG.md
parentconfig: apply overrides even if there's no file (diff)
term: get_font_dpi(): don't crash when there aren't any available monitors
Seen on plasma; monitor is turned off, and then back on again. Before the "new" output global is emitted, the compositor calls fractional_scale::preferred_scale(). This results in a call to get_font_dpi(), where we crash, since it assumes there is at least one monitor available. Fix by falling back to a DPI of 96. Hopefully closes #1498
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8f6a26d5..b1c7bb32 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -106,11 +106,15 @@
auto-detection ([#1465][1465]).
* Crash when `XDG_ACTIVATION_TOKEN` is set, but compositor does not
support XDG activation ([#1493][1493]).
+* Crash when compositor calls `fractional_scale::preferred_scale()`
+ when there are no monitors (for example, after a monitor has been
+ turned off and then back on again) ([#1498][1498]).
[1436]: https://codeberg.org/dnkl/foot/issues/1436
[1464]: https://codeberg.org/dnkl/foot/issues/1464
[1465]: https://codeberg.org/dnkl/foot/issues/1465
[1493]: https://codeberg.org/dnkl/foot/pulls/1493
+[1498]: https://codeberg.org/dnkl/foot/issues/1498
### Security