aboutsummaryrefslogtreecommitdiff
path: root/include/rootston
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-09-23 14:53:15 -0400
committerDrew DeVault <sir@cmpwn.com>2017-09-23 14:53:15 -0400
commit57c50c78f05c25dfb82d0ef69264fca00e4b3e04 (patch)
tree164928df56032decb1ee5bd5af1bc4cc898e29b6 /include/rootston
parente81e99d16d31765b51fcca31d5ffffd5087febfa (diff)
Implement wlr_cursor in rootston
Diffstat (limited to 'include/rootston')
-rw-r--r--include/rootston/input.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/rootston/input.h b/include/rootston/input.h
index 4177ffa8..4ac11959 100644
--- a/include/rootston/input.h
+++ b/include/rootston/input.h
@@ -68,6 +68,7 @@ struct roots_input_event {
struct roots_input {
struct roots_config *config;
+ struct roots_server *server;
// TODO: multiseat, multicursor
struct wlr_cursor *cursor;
@@ -89,6 +90,13 @@ struct roots_input {
struct wl_listener input_add;
struct wl_listener input_remove;
+
+ struct wl_listener cursor_motion;
+ struct wl_listener cursor_motion_absolute;
+ struct wl_listener cursor_button;
+ struct wl_listener cursor_axis;
+ struct wl_listener cursor_tool_axis;
+ struct wl_listener cursor_tool_tip;
};
struct roots_input *input_create(struct roots_server *server,
@@ -97,4 +105,10 @@ void input_destroy(struct roots_input *input);
void pointer_add(struct wlr_input_device *device, struct roots_input *input);
+void cursor_initialize(struct roots_input *input);
+void cursor_load_config(struct roots_config *config,
+ struct wlr_cursor *cursor,
+ struct roots_input *input,
+ struct roots_desktop *desktop);
+
#endif