aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput/backend.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-08-26 08:22:44 -0500
committerGitHub <noreply@github.com>2017-08-26 08:22:44 -0500
commit2f5ff450397714674aec9ffc09ba86989382fcfe (patch)
treee52174f40cec92e47546011d20300171424467a3 /backend/libinput/backend.c
parent48fa59c22e0b49bc347006738cc5dda9c6d13821 (diff)
parentd16b2977f6b156e5b3a4ceb028cfbe70b9a350c1 (diff)
Merge pull request #123 from ascent12/session-multi-gpu
Session Multi-GPU
Diffstat (limited to 'backend/libinput/backend.c')
-rw-r--r--backend/libinput/backend.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/backend/libinput/backend.c b/backend/libinput/backend.c
index 5dd93f47..3d3c90ce 100644
--- a/backend/libinput/backend.c
+++ b/backend/libinput/backend.c
@@ -4,7 +4,6 @@
#include <wlr/backend/session.h>
#include <wlr/backend/interface.h>
#include <wlr/util/log.h>
-#include "backend/udev.h"
#include "backend/libinput.h"
static int wlr_libinput_open_restricted(const char *path,
@@ -47,7 +46,7 @@ static bool wlr_libinput_backend_start(struct wlr_backend *_backend) {
struct wlr_libinput_backend *backend = (struct wlr_libinput_backend *)_backend;
wlr_log(L_DEBUG, "Initializing libinput");
backend->libinput_context = libinput_udev_create_context(&libinput_impl, backend,
- backend->udev->udev);
+ backend->session->udev);
if (!backend->libinput_context) {
wlr_log(L_ERROR, "Failed to create libinput context");
return false;
@@ -139,8 +138,8 @@ static void session_signal(struct wl_listener *listener, void *data) {
}
struct wlr_backend *wlr_libinput_backend_create(struct wl_display *display,
- struct wlr_session *session, struct wlr_udev *udev) {
- assert(display && session && udev);
+ struct wlr_session *session) {
+ assert(display && session);
struct wlr_libinput_backend *backend = calloc(1, sizeof(struct wlr_libinput_backend));
if (!backend) {
@@ -155,7 +154,6 @@ struct wlr_backend *wlr_libinput_backend_create(struct wl_display *display,
}
backend->session = session;
- backend->udev = udev;
backend->display = display;
backend->session_signal.notify = session_signal;