mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
wl backend: add wlr_input_device_is_wl
This commit is contained in:
parent
d9eaca6c9f
commit
169bc9fa10
3 changed files with 10 additions and 1 deletions
|
|
@ -203,6 +203,10 @@ static struct wlr_input_device_impl input_device_impl = {
|
|||
.destroy = input_device_destroy
|
||||
};
|
||||
|
||||
bool wlr_input_device_is_wl(struct wlr_input_device *dev) {
|
||||
return dev->impl == &input_device_impl;
|
||||
}
|
||||
|
||||
static struct wlr_input_device *allocate_device(struct wlr_wl_backend *backend,
|
||||
enum wlr_input_device_type type) {
|
||||
struct wlr_wl_input_device *wlr_wl_dev;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue