aboutsummaryrefslogtreecommitdiff
path: root/backend/multi
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-08-05 23:08:35 -0400
committerDrew DeVault <sir@cmpwn.com>2017-08-05 23:08:35 -0400
commit5bf61ca7edb658737f3ccbaed0a99f4779d329bb (patch)
tree0e29dfa81a30d6172c558d2b5df6d95f31a32b20 /backend/multi
parentf1a069d50df7be30a0ae3cef763bb7337d88dbfc (diff)
Check for multi backend before using it
Diffstat (limited to 'backend/multi')
-rw-r--r--backend/multi/backend.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/multi/backend.c b/backend/multi/backend.c
index a5913f5d..19839629 100644
--- a/backend/multi/backend.c
+++ b/backend/multi/backend.c
@@ -66,6 +66,10 @@ struct wlr_backend *wlr_multi_backend_create(struct wlr_session *session,
return backend;
}
+bool wlr_backend_is_multi(struct wlr_backend *b) {
+ return b->impl == &backend_impl;
+}
+
static void input_add_reemit(struct wl_listener *listener, void *data) {
struct subbackend_state *state = wl_container_of(listener,
state, input_add);