diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2025-03-20 20:01:36 +0000 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2025-03-20 20:01:36 +0000 |
| commit | c5cd4061854d51adc458a112ff16f015d8b48f73 (patch) | |
| tree | 7da8f26ceeced65f548de0a8ba2489d62e8cae71 /swaybar | |
| parent | 68992aa9feaf21565404104911390dccaabee3fa (diff) | |
stringop: fix has_prefix() arg order in config parsing
has_prefix() expects the prefix to be the 2nd argument, not the first.
The config parsing was broken when using `--input-device=`.
Introduced by: 86d128b708d76a76587d4ce796b567ba4be36e66 "Use has_prefix()
instead of strncmp() throughout"
Diffstat (limited to 'swaybar')
| -rw-r--r-- | swaybar/ipc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/ipc.c b/swaybar/ipc.c index f651f035..68d8dd32 100644 --- a/swaybar/ipc.c +++ b/swaybar/ipc.c @@ -46,7 +46,7 @@ void ipc_send_workspace_command(struct swaybar *bar, const char *ws) { char *parse_font(const char *font) { char *new_font = NULL; - if (has_prefix("pango:", font)) { + if (has_prefix(font, "pango:")) { font += strlen("pango:"); } new_font = strdup(font); |
