aboutsummaryrefslogtreecommitdiffstats
path: root/swaynag/config.c
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2022-12-21 11:19:04 +0100
committerLibravatar Simon Ser <contact@emersion.fr>2022-12-22 17:42:33 +0100
commitbd7466e1b7fa7bf567effeb4fcd7ab6f218dff25 (patch)
treeee69039dd830c86e594f9163dde8df0931e10be3 /swaynag/config.c
parentswaynag: fix NULL font description (diff)
downloadsway-bd7466e1b7fa7bf567effeb4fcd7ab6f218dff25.tar.gz
sway-bd7466e1b7fa7bf567effeb4fcd7ab6f218dff25.tar.zst
sway-bd7466e1b7fa7bf567effeb4fcd7ab6f218dff25.zip
swaynag: drop swaynag_type.font
It's too easy to have this go out of sync with font_description.
Diffstat (limited to 'swaynag/config.c')
-rw-r--r--swaynag/config.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/swaynag/config.c b/swaynag/config.c
index a0bf3197..6c8c26fc 100644
--- a/swaynag/config.c
+++ b/swaynag/config.c
@@ -226,10 +226,8 @@ int swaynag_parse_options(int argc, char **argv, struct swaynag *swaynag,
226 break; 226 break;
227 case 'f': // Font 227 case 'f': // Font
228 if (type) { 228 if (type) {
229 free(type->font);
230 pango_font_description_free(type->font_description); 229 pango_font_description_free(type->font_description);
231 type->font = strdup(optarg); 230 type->font_description = pango_font_description_from_string(optarg);
232 type->font_description = pango_font_description_from_string(type->font);
233 } 231 }
234 break; 232 break;
235 case 'l': // Detailed Message 233 case 'l': // Detailed Message