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 /include/swaybar/bar.h | |
| parent | bec982bba62db39f734d21ffbd2a3c8cefb3f6bd (diff) | |
| parent | e43c20134ab48ab36391443860cbdf4ac67d8348 (diff) | |
Merge pull request #2281 from pvsr/X11_click
Send clicks to swaybar blocks as X11 button ids
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; }; |
