swaynag: drop swaynag_type.font

It's too easy to have this go out of sync with font_description.
This commit is contained in:
Simon Ser 2022-12-21 11:19:04 +01:00
parent fd0af78e43
commit bd7466e1b7
4 changed files with 5 additions and 12 deletions

View file

@ -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