mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
headless backend: add wlr_output_is_headless
This commit is contained in:
parent
995383b049
commit
d9eaca6c9f
3 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue