aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2022-03-08 15:20:56 -0500
committerKirill Primak <vyivel@eclair.cafe>2022-03-17 17:16:47 +0000
commit2001441a370f673e8a46a1c172c5fc48df106750 (patch)
treec86cc011a01d23ef9f5b321812e2270464aa3b16
parentb7e9ad7989a1525a581cfb7065c3f8d576de03da (diff)
backend/wayland: remove wl_seat_listener from public API
-rw-r--r--backend/wayland/seat.c4
-rw-r--r--include/backend/wayland.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/backend/wayland/seat.c b/backend/wayland/seat.c
index 768c4083..7d16d7d4 100644
--- a/backend/wayland/seat.c
+++ b/backend/wayland/seat.c
@@ -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,
};
diff --git a/include/backend/wayland.h b/include/backend/wayland.h
index a6d56538..5baaac9d 100644
--- a/include/backend/wayland.h
+++ b/include/backend/wayland.h
@@ -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;