]> git.mdlowis.com Git - proto/labwc.git/commit
src/config/rcxml.c: distinguish no and unknown font places
authorbi4k8 <bi4k8@github>
Wed, 9 Nov 2022 22:41:31 +0000 (22:41 +0000)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Fri, 11 Nov 2022 21:45:47 +0000 (22:45 +0100)
commit92a98164c3539b04bcee1adc9fd4041ef18c0fe3
tree88f6bfe921b87eba7018f7237e202af199faaf71
parent9ed800c5a194cf06373a087801ac8d3b77c678a9
src/config/rcxml.c: distinguish no and unknown font places

Currently, the `rc.xml` parser applies font settings in a `<font>` tag with an
unknown value for its `place` attribute to all fonts. This means that whatever
the final unknown-`place` `<font>` tag is in a user's `rc.xml` applies to all
text drawn by labwc.

Instead, only treat `<font>` tags with an empty or missing `place` attribute as
applying globally, and warn when encountering unknown `place` attribute values
(which will help us find font places to support).
src/config/rcxml.c