aboutsummaryrefslogtreecommitdiff
path: root/README.nl.md
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2021-09-17 17:32:29 +0200
committerFurkan Sahin <furkan-dev@proton.me>2021-09-17 17:32:29 +0200
commit54bff6b4af39d32a10a5b4b70ae73f1c5d6fd441 (patch)
tree2a0ea215552cf497f2f6b4f25552975eb33781b0 /README.nl.md
parentf147dbd849e87810a8d7b167ad7ddb51139b539a (diff)
Avoid unecessary font metric calculations
Prior to 7ade2c9f, titlebar's font height (and other related values) would change any time any titlebar's content changed, so these values were recalculated each time any titlebar's content changed (or a new titlebar was created). However, since the above was merge, these values no longer change so often and we only need to recalculate them when the configured font changes (and stop calling `config_update_font_height` each time titlebars are rendered). This commit removes all the unecessary calls to this function and avoids all those unecessary calculations. Whenever the font strays from the default value, the `font` command is called, and it calls `config_update_font_height`, which is enough to keep the value always up to date. I've also added a default value to the `font_baseline` config, since otherwise that's zero for setups that don't explicitly specify a font.
Diffstat (limited to 'README.nl.md')
0 files changed, 0 insertions, 0 deletions