aboutsummaryrefslogtreecommitdiff
path: root/backend/headless
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2017-12-19 20:17:47 +0100
committerDominique Martinet <asmadeus@codewreck.org>2017-12-19 20:17:47 +0100
commitd9eaca6c9fa162c3b47ce61ecdeab4dc73620b0a (patch)
tree038afb2c0332460bfeea23f382e11f205e7e3c71 /backend/headless
parent995383b0490401494bf4999f46428b319e781820 (diff)
headless backend: add wlr_output_is_headless
Diffstat (limited to 'backend/headless')
-rw-r--r--backend/headless/output.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/headless/output.c b/backend/headless/output.c
index 9c4ba35e..511c2c53 100644
--- a/backend/headless/output.c
+++ b/backend/headless/output.c
@@ -82,6 +82,10 @@ static const struct wlr_output_impl output_impl = {
.swap_buffers = output_swap_buffers,
};
+bool wlr_output_is_headless(struct wlr_output *wlr_output) {
+ return wlr_output->impl == &output_impl;
+}
+
static int signal_frame(void *data) {
struct wlr_headless_output *output = data;
wl_signal_emit(&output->wlr_output.events.frame, &output->wlr_output);