From f5e8fa48f3cf6dc8522191bb56670503de41fa4c Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 23 Nov 2023 13:50:32 +0100 Subject: backend/libinput: drop wl_display argument We can grab the event loop from the wlr_session instead. --- include/backend/libinput.h | 2 -- include/wlr/backend/libinput.h | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'include') diff --git a/include/backend/libinput.h b/include/backend/libinput.h index 73a52754..2b8babb4 100644 --- a/include/backend/libinput.h +++ b/include/backend/libinput.h @@ -18,12 +18,10 @@ struct wlr_libinput_backend { struct wlr_backend backend; struct wlr_session *session; - struct wl_display *display; struct libinput *libinput_context; struct wl_event_source *input_event; - struct wl_listener display_destroy; struct wl_listener session_destroy; struct wl_listener session_signal; diff --git a/include/wlr/backend/libinput.h b/include/wlr/backend/libinput.h index 83d281f9..663f71ac 100644 --- a/include/wlr/backend/libinput.h +++ b/include/wlr/backend/libinput.h @@ -16,8 +16,7 @@ struct wlr_input_device; -struct wlr_backend *wlr_libinput_backend_create(struct wl_display *display, - struct wlr_session *session); +struct wlr_backend *wlr_libinput_backend_create(struct wlr_session *session); /** * Gets the underlying struct libinput_device handle for the given input device. */ -- cgit v1.2.3