diff options
author | emersion <contact@emersion.fr> | 2018-07-18 00:16:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-18 00:16:15 +0100 |
commit | 48b911a4596f50b585a1073d32413236d9defb60 (patch) | |
tree | a225ff763a647e669cb8c7962b0bc333a8cf86a7 /swaybar/render.c | |
parent | Merge pull request #2289 from frsfnrrg/memory-fixes (diff) | |
parent | remove unnecessary parens (diff) | |
download | sway-48b911a4596f50b585a1073d32413236d9defb60.tar.gz sway-48b911a4596f50b585a1073d32413236d9defb60.tar.zst sway-48b911a4596f50b585a1073d32413236d9defb60.zip |
Merge pull request #2281 from pvsr/X11_click
Send clicks to swaybar blocks as X11 button ids
Diffstat (limited to 'swaybar/render.c')
-rw-r--r-- | swaybar/render.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/swaybar/render.c b/swaybar/render.c index 909b56f4..d210e25a 100644 --- a/swaybar/render.c +++ b/swaybar/render.c | |||
@@ -109,7 +109,7 @@ static void render_sharp_line(cairo_t *cairo, uint32_t color, | |||
109 | } | 109 | } |
110 | 110 | ||
111 | static void block_hotspot_callback(struct swaybar_output *output, | 111 | static void block_hotspot_callback(struct swaybar_output *output, |
112 | int x, int y, uint32_t button, void *data) { | 112 | int x, int y, enum x11_button button, void *data) { |
113 | struct i3bar_block *block = data; | 113 | struct i3bar_block *block = data; |
114 | struct status_line *status = output->bar->status; | 114 | struct status_line *status = output->bar->status; |
115 | i3bar_block_send_click(status, block, x, y, button); | 115 | i3bar_block_send_click(status, block, x, y, button); |
@@ -349,7 +349,7 @@ static const char *strip_workspace_number(const char *ws_name) { | |||
349 | } | 349 | } |
350 | 350 | ||
351 | static void workspace_hotspot_callback(struct swaybar_output *output, | 351 | static void workspace_hotspot_callback(struct swaybar_output *output, |
352 | int x, int y, uint32_t button, void *data) { | 352 | int x, int y, enum x11_button button, void *data) { |
353 | ipc_send_workspace_command(output->bar, (const char *)data); | 353 | ipc_send_workspace_command(output->bar, (const char *)data); |
354 | } | 354 | } |
355 | 355 | ||