diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2018-07-15 20:16:37 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2018-07-15 20:16:37 -0400 |
| commit | 8c9674858abffbd416156bec5ce058ea64b4408b (patch) | |
| tree | 1e2c2a54f588c4931cbf8b0cf2820029aee82bb4 /include/swaybar/bar.h | |
| parent | e4c2193f0bffbe0f1ccef3f02f02adf2bda194bb (diff) | |
make hotspot callback take an x11 button id
Diffstat (limited to 'include/swaybar/bar.h')
| -rw-r--r-- | include/swaybar/bar.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h index af478f33..f1ff25b2 100644 --- a/include/swaybar/bar.h +++ b/include/swaybar/bar.h @@ -16,11 +16,24 @@ struct swaybar_pointer { int x, y; }; +enum x11_button { + NONE, + LEFT, + MIDDLE, + RIGHT, + SCROLL_UP, + SCROLL_DOWN, + SCROLL_LEFT, + SCROLL_RIGHT, + BACK, + FORWARD, +}; + struct swaybar_hotspot { struct wl_list link; int x, y, width, height; void (*callback)(struct swaybar_output *output, - int x, int y, uint32_t button, void *data); + int x, int y, enum x11_button button, void *data); void (*destroy)(void *data); void *data; }; |
