From f83b16bc17ab9a95c23d235416acc2c26daa640d Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Tue, 19 Dec 2017 19:49:46 +0100 Subject: x11 backend: add wlr_output_is_x11 --- backend/x11/backend.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'backend') 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; +} -- cgit v1.2.3