diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-08-13 17:13:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-13 17:13:12 -0400 |
commit | f11b38f97ad7eee040339604100fe545cbf77bb5 (patch) | |
tree | ab910dbaac5467bce3e4d1715a1b21ed9c4d199a /backend/libinput | |
parent | 41e735242dc8788618bb668ad70ea164e47099db (diff) | |
parent | de66bdb8679de14377306b7a903f2bc5d62fd169 (diff) |
Merge pull request #82 from 4e554c4c/detection
Add backend detection functions
Diffstat (limited to 'backend/libinput')
-rw-r--r-- | backend/libinput/backend.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/libinput/backend.c b/backend/libinput/backend.c index 44a1a4a9..18e4826c 100644 --- a/backend/libinput/backend.c +++ b/backend/libinput/backend.c @@ -103,6 +103,10 @@ static struct wlr_backend_impl backend_impl = { .destroy = wlr_libinput_backend_destroy }; +bool wlr_backend_is_libinput(struct wlr_backend *b) { + return b->impl == &backend_impl; +} + static void session_signal(struct wl_listener *listener, void *data) { struct wlr_libinput_backend *backend = wl_container_of(listener, backend, session_signal); struct wlr_session *session = data; |