diff options
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;  }; | 
