aboutsummaryrefslogtreecommitdiff
path: root/swaybar
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-04-08 10:04:23 -0400
committerFurkan Sahin <furkan-dev@proton.me>2018-04-08 10:04:23 -0400
commita078d71d997c9b4b7db51895c3eacaf1e3f05669 (patch)
tree5de769e996f762b0ddb8e4be642a47300b381e16 /swaybar
parent53b56eee672430fd08d641214f1979e23c098f1d (diff)
Fixup for #1773
Diffstat (limited to 'swaybar')
-rw-r--r--swaybar/render.c3
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,
struct swaybar_output *output, struct swaybar_config *config,
struct swaybar_workspace *ws, double *x, uint32_t surface_height) {
const char *name = ws->name;
- const char *whole_name = ws->name;
if (config->strip_workspace_numbers) {
name = strip_workspace_number(ws->name);
}
@@ -412,7 +411,7 @@ static uint32_t render_workspace_button(cairo_t *cairo,
hotspot->height = height;
hotspot->callback = workspace_hotspot_callback;
hotspot->destroy = free;
- hotspot->data = strdup(whole_name);
+ hotspot->data = strdup(ws->name);
wl_list_insert(&output->hotspots, &hotspot->link);
*x += width;