mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-17 22:05:56 -05:00
output: add output_pending_image_description()
This commit is contained in:
parent
e76f8ac2b3
commit
2498036e67
2 changed files with 10 additions and 0 deletions
|
|
@ -500,6 +500,14 @@ bool output_pending_enabled(struct wlr_output *output,
|
|||
return output->enabled;
|
||||
}
|
||||
|
||||
const struct wlr_output_image_description *output_pending_image_description(
|
||||
struct wlr_output *output, const struct wlr_output_state *state) {
|
||||
if (state->committed & WLR_OUTPUT_STATE_IMAGE_DESCRIPTION) {
|
||||
return state->image_description;
|
||||
}
|
||||
return output->image_description;
|
||||
}
|
||||
|
||||
/**
|
||||
* Compare a struct wlr_output_state with the current state of a struct
|
||||
* wlr_output.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue