diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2016-07-16 09:09:37 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2016-07-16 09:09:37 -0400 |
| commit | 20abc2f550f9d3b9cee2c0e9483179bbb00df78f (patch) | |
| tree | 668520fe97250c4274c3749b7ffb870a3063e87f /include | |
| parent | 2ba18eb3f5aeee9954471af82e8efefe43621afa (diff) | |
| parent | 7b38e5a1dc8851ea56c7da05708739a7738dc08d (diff) | |
Merge pull request #752 from deklov/bar-scroll-02
Change workspace with mouse wheel
Diffstat (limited to 'include')
| -rw-r--r-- | include/client/window.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/client/window.h b/include/client/window.h index 55a12225..e07e3509 100644 --- a/include/client/window.h +++ b/include/client/window.h @@ -27,11 +27,20 @@ struct cursor { struct wl_poitner *pointer; }; +enum scroll_direction { + SCROLL_UP, + SCROLL_DOWN, + SCROLL_LEFT, + SCROLL_RIGHT, +}; + struct pointer_input { int last_x; int last_y; - void (*notify)(struct window *window, int x, int y, uint32_t button); + void (*notify_button)(struct window *window, int x, int y, uint32_t button); + + void (*notify_scroll)(struct window *window, enum scroll_direction direction); }; struct window { |
