aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2017-12-19 19:49:46 +0100
committerDominique Martinet <asmadeus@codewreck.org>2017-12-19 20:13:49 +0100
commitf83b16bc17ab9a95c23d235416acc2c26daa640d (patch)
treebec7063a1fb14c222c3ea3d9d7f08877aee2b1e9 /backend
parent3e228b0b2ac6fbeee544764aa1c3aa1e7e501af1 (diff)
x11 backend: add wlr_output_is_x11
Diffstat (limited to 'backend')
-rw-r--r--backend/x11/backend.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/x11/backend.c b/backend/x11/backend.c
index f6f9cfa8..0d0eaa5b 100644
--- a/backend/x11/backend.c
+++ b/backend/x11/backend.c
@@ -401,3 +401,7 @@ static struct wlr_output_impl output_impl = {
.make_current = output_make_current,
.swap_buffers = output_swap_buffers,
};
+
+bool wlr_output_is_x11(struct wlr_output *wlr_output) {
+ return wlr_output->impl == &output_impl;
+}