mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-20 06:59:42 -05:00
output-layer: add cropping support
Add a src_box state field. Use the SRC_* KMS props in the DRM backend, reject the layers in the Wayland backend (for now, we can support it later via viewporter).
This commit is contained in:
parent
d795824346
commit
44069dfd5e
4 changed files with 23 additions and 4 deletions
|
|
@ -832,6 +832,7 @@ bool wlr_output_commit_state(struct wlr_output *output,
|
|||
wl_list_insert(output->layers.prev, &layer->link);
|
||||
|
||||
// Commit layer state
|
||||
layer->src_box = layer_state->src_box;
|
||||
layer->dst_box = layer_state->dst_box;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue