diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2019-01-13 20:41:05 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2019-01-13 20:41:05 -0500 |
| commit | 24b4eb2492c1bebc98f34eed12e640a4ee505f14 (patch) | |
| tree | f90b770d160cf5ca773a3d63d52311f7ba731b16 /include/swaybar | |
| parent | f50e3cc749d0769e44d935c88418dfa2122f4b0a (diff) | |
| parent | 2331323a9924adc50aa637a0594efedbf3eaba7b (diff) | |
Merge pull request #3344 from RedSoxFan/bar-mouse-bindings-improved
Improve mouse button parsing: bar mouse bindings
Diffstat (limited to 'include/swaybar')
| -rw-r--r-- | include/swaybar/i3bar.h | 2 | ||||
| -rw-r--r-- | include/swaybar/input.h | 9 |
2 files changed, 8 insertions, 3 deletions
diff --git a/include/swaybar/i3bar.h b/include/swaybar/i3bar.h index ab4744a5..aa4415ff 100644 --- a/include/swaybar/i3bar.h +++ b/include/swaybar/i3bar.h @@ -28,6 +28,6 @@ void i3bar_block_unref(struct i3bar_block *block); bool i3bar_handle_readable(struct status_line *status); enum hotspot_event_handling i3bar_block_send_click(struct status_line *status, struct i3bar_block *block, int x, int y, int rx, int ry, int w, int h, - enum x11_button button); + uint32_t button); #endif diff --git a/include/swaybar/input.h b/include/swaybar/input.h index f480d009..4b46b0de 100644 --- a/include/swaybar/input.h +++ b/include/swaybar/input.h @@ -4,6 +4,11 @@ #include <wayland-client.h> #include "list.h" +#define SWAY_SCROLL_UP KEY_MAX + 1 +#define SWAY_SCROLL_DOWN KEY_MAX + 2 +#define SWAY_SCROLL_LEFT KEY_MAX + 3 +#define SWAY_SCROLL_RIGHT KEY_MAX + 4 + struct swaybar; struct swaybar_output; @@ -39,8 +44,8 @@ struct swaybar_hotspot { struct wl_list link; // swaybar_output::hotspots int x, y, width, height; enum hotspot_event_handling (*callback)(struct swaybar_output *output, - struct swaybar_hotspot *hotspot, int x, int y, - enum x11_button button, void *data); + struct swaybar_hotspot *hotspot, int x, int y, uint32_t button, + void *data); void (*destroy)(void *data); void *data; }; |
