aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-06-22 12:31:35 -0400
committerGitHub <noreply@github.com>2017-06-22 12:31:35 -0400
commit5055d899550a92d72362efe6add44b2547147599 (patch)
tree6f003636aee79364ef15af1dd51f743a6ff78031 /include
parentbb16025318e1c3d3844e71e6e8f29b1e8634ec3e (diff)
parenta9547af35833ba06b7446bcba800d7d6a764508c (diff)
Merge pull request #19 from nyorain/wayland-input
Basic wayland backend input
Diffstat (limited to 'include')
-rw-r--r--include/backend/wayland.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/backend/wayland.h b/include/backend/wayland.h
index bf65ec50..792bad37 100644
--- a/include/backend/wayland.h
+++ b/include/backend/wayland.h
@@ -39,11 +39,18 @@ struct wlr_output_state {
};
struct wlr_input_device_state {
- enum wlr_input_device_type type;
+ struct wlr_backend_state* backend;
void *resource;
};
+struct wlr_pointer_state {
+ enum wlr_axis_source axis_source;
+ struct wlr_output *current_output;
+};
+
void wlr_wl_registry_poll(struct wlr_backend_state *backend);
+struct wlr_output *wlr_wl_output_for_surface(struct wlr_backend_state *backend,
+ struct wl_surface *surface);
extern const struct wl_seat_listener seat_listener;