mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-21 06:46:46 -04:00
backend/libinput/backend.c, backend/session/session.c: implement libdemi support
This commit is contained in:
parent
5161682b1b
commit
ab2425e65f
7 changed files with 168 additions and 5 deletions
|
|
@ -96,6 +96,8 @@ static bool backend_start(struct wlr_backend *wlr_backend) {
|
|||
#if WLR_HAS_UDEV
|
||||
backend->libinput_context = libinput_udev_create_context(&libinput_impl,
|
||||
backend, backend->session->dev->udev);
|
||||
#elif WLR_HAS_DEMI
|
||||
backend->libinput_context = libinput_create_context(&libinput_impl, backend);
|
||||
#elif defined(__linux__)
|
||||
backend->libinput_context = libinput_netlink_create_context(&libinput_impl,
|
||||
backend, NETLINK_BITMASK);
|
||||
|
|
@ -110,6 +112,8 @@ static bool backend_start(struct wlr_backend *wlr_backend) {
|
|||
#if WLR_HAS_UDEV
|
||||
if (libinput_udev_assign_seat(backend->libinput_context,
|
||||
backend->session->seat) != 0) {
|
||||
#elif WLR_HAS_DEMI
|
||||
if (libinput_assign_seat(backend->libinput_context, backend->session->seat) != 0) {
|
||||
#elif defined(__linux__)
|
||||
if (libinput_netlink_assign_seat(backend->libinput_context,
|
||||
backend->session->seat) != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue