mirror of
https://github.com/swaywm/sway.git
synced 2024-11-10 12:33:50 +01:00
Handle swaybar using sway font
This commit is contained in:
parent
a87a5dbdd5
commit
d80466068a
@ -35,9 +35,11 @@ uint32_t parse_position(const char *position) {
|
||||
char *parse_font(const char *font) {
|
||||
char *new_font = NULL;
|
||||
if (strncmp("pango:", font, 6) == 0) {
|
||||
new_font = strdup(font + 6);
|
||||
font += 6;
|
||||
}
|
||||
|
||||
new_font = strdup(font);
|
||||
|
||||
return new_font;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user