diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/backend/wayland.h | 3 | ||||
-rw-r--r-- | include/wlr/interfaces/wlr_pointer.h | 6 | ||||
-rw-r--r-- | include/wlr/types/wlr_pointer.h | 2 |
3 files changed, 5 insertions, 6 deletions
diff --git a/include/backend/wayland.h b/include/backend/wayland.h index 6d4b0138..d930f21b 100644 --- a/include/backend/wayland.h +++ b/include/backend/wayland.h @@ -48,7 +48,8 @@ struct wlr_wl_input_device { void *resource; }; -struct wlr_pointer_state { +struct wlr_wl_pointer { + struct wlr_pointer wlr_pointer; enum wlr_axis_source axis_source; struct wlr_wl_backend_output *current_output; }; diff --git a/include/wlr/interfaces/wlr_pointer.h b/include/wlr/interfaces/wlr_pointer.h index 8c3f7e0d..8d4bf703 100644 --- a/include/wlr/interfaces/wlr_pointer.h +++ b/include/wlr/interfaces/wlr_pointer.h @@ -3,11 +3,11 @@ #include <wlr/types/wlr_pointer.h> struct wlr_pointer_impl { - void (*destroy)(struct wlr_pointer_state *state); + void (*destroy)(struct wlr_pointer *pointer); }; -struct wlr_pointer *wlr_pointer_create(struct wlr_pointer_impl *impl, - struct wlr_pointer_state *state); +void wlr_pointer_init(struct wlr_pointer *pointer, + struct wlr_pointer_impl *impl); void wlr_pointer_destroy(struct wlr_pointer *pointer); #endif diff --git a/include/wlr/types/wlr_pointer.h b/include/wlr/types/wlr_pointer.h index 139ba868..13a2d045 100644 --- a/include/wlr/types/wlr_pointer.h +++ b/include/wlr/types/wlr_pointer.h @@ -4,11 +4,9 @@ #include <wayland-server.h> #include <stdint.h> -struct wlr_pointer_state; struct wlr_pointer_impl; struct wlr_pointer { - struct wlr_pointer_state *state; struct wlr_pointer_impl *impl; struct { |