diff options
| author | Simon Ser <contact@emersion.fr> | 2022-12-21 11:19:04 +0100 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2022-12-22 17:42:33 +0100 |
| commit | bd7466e1b7fa7bf567effeb4fcd7ab6f218dff25 (patch) | |
| tree | ee69039dd830c86e594f9163dde8df0931e10be3 /swaynag/config.c | |
| parent | fd0af78e43f4dd67a404f475c676b25ae38a4b82 (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.c | 4 |
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 |
