mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-22 18:09:49 +01:00
backend/wayland: remove wl_seat_listener from public API
This commit is contained in:
parent
b7e9ad7989
commit
2001441a37
2 changed files with 3 additions and 3 deletions
|
@ -222,6 +222,8 @@ static void init_seat_touch(struct wlr_wl_seat *seat) {
|
|||
&seat->wlr_touch.base);
|
||||
}
|
||||
|
||||
static const struct wl_seat_listener seat_listener;
|
||||
|
||||
bool create_wl_seat(struct wl_seat *wl_seat, struct wlr_wl_backend *wl) {
|
||||
struct wlr_wl_seat *seat = calloc(1, sizeof(struct wlr_wl_seat));
|
||||
if (!seat) {
|
||||
|
@ -336,7 +338,7 @@ static void seat_handle_name(void *data, struct wl_seat *wl_seat,
|
|||
seat->name = strdup(name);
|
||||
}
|
||||
|
||||
const struct wl_seat_listener seat_listener = {
|
||||
static const struct wl_seat_listener seat_listener = {
|
||||
.capabilities = seat_handle_capabilities,
|
||||
.name = seat_handle_name,
|
||||
};
|
||||
|
|
|
@ -151,8 +151,6 @@ bool create_wl_seat(struct wl_seat *wl_seat, struct wlr_wl_backend *wl);
|
|||
void destroy_wl_seats(struct wlr_wl_backend *wl);
|
||||
void destroy_wl_buffer(struct wlr_wl_buffer *buffer);
|
||||
|
||||
extern const struct wl_seat_listener seat_listener;
|
||||
|
||||
extern const struct wlr_pointer_impl wl_pointer_impl;
|
||||
extern const struct wlr_tablet_pad_impl wl_tablet_pad_impl;
|
||||
extern const struct wlr_tablet_impl wl_tablet_impl;
|
||||
|
|
Loading…
Reference in a new issue