diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-08 10:03:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-08 10:03:22 -0400 |
commit | bd236b658787aedd3bb33a10cb558486fbc56d6d (patch) | |
tree | dd53f3dd8276598b36d5fbf23458d5781931b62b /swaybar | |
parent | 2e41804b5473c04626ceda27e13b58a329d211d4 (diff) | |
parent | 257a831c726e7dadb23eca224ef405f374961695 (diff) |
Merge pull request #1773 from thejan2009/issue/swaybar-mouse
Use full ws->name in swaybar hotspot callback
Diffstat (limited to 'swaybar')
-rw-r--r-- | swaybar/render.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/swaybar/render.c b/swaybar/render.c index 53e578f0..1c24e01f 100644 --- a/swaybar/render.c +++ b/swaybar/render.c @@ -352,6 +352,7 @@ 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); } @@ -411,7 +412,7 @@ static uint32_t render_workspace_button(cairo_t *cairo, hotspot->height = height; hotspot->callback = workspace_hotspot_callback; hotspot->destroy = free; - hotspot->data = strdup(name); + hotspot->data = strdup(whole_name); wl_list_insert(&output->hotspots, &hotspot->link); *x += width; |