aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2017-12-19 19:55:18 +0100
committerDominique Martinet <asmadeus@codewreck.org>2017-12-19 20:13:49 +0100
commitdabfe159dea502a51617d90785343cee18cf408b (patch)
treeb3e2f2de180fe39cd425140f10e00b749b7a089d /backend
parentf83b16bc17ab9a95c23d235416acc2c26daa640d (diff)
wl backend: add wlr_output_is_wl
Diffstat (limited to 'backend')
-rw-r--r--backend/wayland/output.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/wayland/output.c b/backend/wayland/output.c
index d841ec49..d76f6366 100644
--- a/backend/wayland/output.c
+++ b/backend/wayland/output.c
@@ -205,6 +205,10 @@ static struct wlr_output_impl output_impl = {
.move_cursor = wlr_wl_output_move_cursor,
};
+bool wlr_output_is_wl(struct wlr_output *wlr_output) {
+ return wlr_output->impl == &output_impl;
+}
+
static void xdg_surface_handle_configure(void *data, struct zxdg_surface_v6 *xdg_surface,
uint32_t serial) {
struct wlr_wl_backend_output *output = data;