mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-02 01:40:54 -05:00
output: add wlr_output.image_description
Stores the current image description.
This commit is contained in:
parent
6d8bb66f98
commit
e76f8ac2b3
2 changed files with 11 additions and 0 deletions
|
|
@ -233,6 +233,15 @@ static void output_apply_state(struct wlr_output *output,
|
|||
output->transform = state->transform;
|
||||
}
|
||||
|
||||
if (state->committed & WLR_OUTPUT_STATE_IMAGE_DESCRIPTION) {
|
||||
if (state->image_description != NULL) {
|
||||
output->image_description_value = *state->image_description;
|
||||
output->image_description = &output->image_description_value;
|
||||
} else {
|
||||
output->image_description = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
bool geometry_updated = state->committed &
|
||||
(WLR_OUTPUT_STATE_MODE | WLR_OUTPUT_STATE_TRANSFORM |
|
||||
WLR_OUTPUT_STATE_SUBPIXEL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue