diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-07-16 09:09:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-16 09:09:37 -0400 |
commit | e66f813d49e60728064fa563e01f00f7d99e0a08 (patch) | |
tree | 668520fe97250c4274c3749b7ffb870a3063e87f /include | |
parent | a11277c88fba203f69f7a6e11c345265b4697cf0 (diff) | |
parent | e38d6b94b890b473141fb0d1cd3f4b3203ea7d81 (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 { |