diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-08 10:04:23 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-04-08 10:04:23 -0400 |
commit | 4ba6545c650712b1ec18854fa7f94995d0176637 (patch) | |
tree | 5de769e996f762b0ddb8e4be642a47300b381e16 | |
parent | Merge pull request #1773 from thejan2009/issue/swaybar-mouse (diff) | |
download | sway-4ba6545c650712b1ec18854fa7f94995d0176637.tar.gz sway-4ba6545c650712b1ec18854fa7f94995d0176637.tar.zst sway-4ba6545c650712b1ec18854fa7f94995d0176637.zip |
Fixup for #1773
-rw-r--r-- | swaybar/render.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/swaybar/render.c b/swaybar/render.c index 1c24e01f..d2175f0a 100644 --- a/swaybar/render.c +++ b/swaybar/render.c | |||
@@ -352,7 +352,6 @@ static uint32_t render_workspace_button(cairo_t *cairo, | |||
352 | struct swaybar_output *output, struct swaybar_config *config, | 352 | struct swaybar_output *output, struct swaybar_config *config, |
353 | struct swaybar_workspace *ws, double *x, uint32_t surface_height) { | 353 | struct swaybar_workspace *ws, double *x, uint32_t surface_height) { |
354 | const char *name = ws->name; | 354 | const char *name = ws->name; |
355 | const char *whole_name = ws->name; | ||
356 | if (config->strip_workspace_numbers) { | 355 | if (config->strip_workspace_numbers) { |
357 | name = strip_workspace_number(ws->name); | 356 | name = strip_workspace_number(ws->name); |
358 | } | 357 | } |
@@ -412,7 +411,7 @@ static uint32_t render_workspace_button(cairo_t *cairo, | |||
412 | hotspot->height = height; | 411 | hotspot->height = height; |
413 | hotspot->callback = workspace_hotspot_callback; | 412 | hotspot->callback = workspace_hotspot_callback; |
414 | hotspot->destroy = free; | 413 | hotspot->destroy = free; |
415 | hotspot->data = strdup(whole_name); | 414 | hotspot->data = strdup(ws->name); |
416 | wl_list_insert(&output->hotspots, &hotspot->link); | 415 | wl_list_insert(&output->hotspots, &hotspot->link); |
417 | 416 | ||
418 | *x += width; | 417 | *x += width; |