mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-05-21 21:38:17 -04:00
backend/libinput: expose libinput context
Add `wlr_backend_get_libinput` getter, which returns a direct handle to `struct libinput`. Exposing the libinput context will allow compositors to load libinput plugins after creating a `wlr_backend`. Lua plugins are supported since libinput 1.30.0.
This commit is contained in:
parent
4b8c11bd46
commit
b74e0cc75b
2 changed files with 20 additions and 9 deletions
|
|
@ -28,6 +28,10 @@ struct libinput_device *wlr_libinput_get_device_handle(
|
|||
*/
|
||||
struct libinput_tablet_tool *wlr_libinput_get_tablet_tool_handle(
|
||||
struct wlr_tablet_tool *wlr_tablet_tool);
|
||||
/**
|
||||
* Gets the underlying struct libinput for direct access to the libinput context.
|
||||
*/
|
||||
struct libinput *wlr_backend_get_libinput(struct wlr_backend *wlr_backend);
|
||||
|
||||
bool wlr_backend_is_libinput(const struct wlr_backend *backend);
|
||||
bool wlr_input_device_is_libinput(struct wlr_input_device *device);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue