diff options
author | emersion <contact@emersion.fr> | 2017-12-19 22:53:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-19 22:53:08 +0100 |
commit | 1a96ce0c53c84295d33b143e1b6cf02cb7017d50 (patch) | |
tree | c19713e52bb8931c9a5116e745104458bf5e4f29 /backend/libinput | |
parent | 36d875136354b0f0438b1fe89d5ea897b113bd24 (diff) | |
parent | fcd7062542bec6f9ab247dbc63c6eead457006bf (diff) |
Merge pull request #505 from martinetd/io_is_foo
Add wlr_input_device_is_foo and wlr_output_is_bar functions
Diffstat (limited to 'backend/libinput')
-rw-r--r-- | backend/libinput/events.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/libinput/events.c b/backend/libinput/events.c index c14aef01..758a9f25 100644 --- a/backend/libinput/events.c +++ b/backend/libinput/events.c @@ -53,6 +53,10 @@ static struct wlr_input_device *allocate_device( return wlr_dev; } +bool wlr_input_device_is_libinput(struct wlr_input_device *wlr_dev) { + return wlr_dev->impl == &input_device_impl; +} + static void handle_device_added(struct wlr_libinput_backend *backend, struct libinput_device *libinput_dev) { assert(backend && libinput_dev); |