aboutsummaryrefslogtreecommitdiff
path: root/swaynag/config.c
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2022-12-21 11:19:04 +0100
committerFurkan Sahin <furkan-dev@proton.me>2022-12-21 11:19:04 +0100
commit86a206d01742d0ebe4f3f713e65bb47670d1427b (patch)
treeee69039dd830c86e594f9163dde8df0931e10be3 /swaynag/config.c
parenta6ae09b4b8e9df55446875211729e84b9f55f64f (diff)
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,
break;
case 'f': // Font
if (type) {
- free(type->font);
pango_font_description_free(type->font_description);
- type->font = strdup(optarg);
- type->font_description = pango_font_description_from_string(type->font);
+ type->font_description = pango_font_description_from_string(optarg);
}
break;
case 'l': // Detailed Message