Handle swaybar using sway font

master
Mikkel Oscar Lyderik 9 years ago
parent a87a5dbdd5
commit d80466068a

@ -35,9 +35,11 @@ uint32_t parse_position(const char *position) {
char *parse_font(const char *font) { char *parse_font(const char *font) {
char *new_font = NULL; char *new_font = NULL;
if (strncmp("pango:", font, 6) == 0) { if (strncmp("pango:", font, 6) == 0) {
new_font = strdup(font + 6); font += 6;
} }
new_font = strdup(font);
return new_font; return new_font;
} }

Loading…
Cancel
Save