aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authornyorain <nyorain@gmail.com>2017-06-22 17:54:51 +0200
committernyorain <nyorain@gmail.com>2017-06-22 17:55:00 +0200
commit272030652a73fd54472726e3ccd693402868fd35 (patch)
tree0078ea896a5c26806cd6bf130a3de781fecce6e6 /include
parent0813c1dd39942613d9dd47a60922820b6f1610ef (diff)
Implement absolute motion events for wayland
Diffstat (limited to 'include')
-rw-r--r--include/backend/wayland.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/backend/wayland.h b/include/backend/wayland.h
index 8138101c..df817598 100644
--- a/include/backend/wayland.h
+++ b/include/backend/wayland.h
@@ -39,16 +39,17 @@ 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 {
- double surface_x;
- double surface_y;
+ 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;