Implement wlr_cursor in rootston

This commit is contained in:
Drew DeVault 2017-09-23 14:53:15 -04:00
parent e81e99d16d
commit 57c50c78f0
7 changed files with 220 additions and 35 deletions

View file

@ -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