mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-22 06:59:44 -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
|
|
@ -52,6 +52,7 @@ struct wlr_output_layer {
|
|||
|
||||
// private state
|
||||
|
||||
struct wlr_fbox src_box;
|
||||
struct wlr_box dst_box;
|
||||
};
|
||||
|
||||
|
|
@ -63,6 +64,8 @@ struct wlr_output_layer_state {
|
|||
|
||||
// Buffer to display, or NULL to disable the layer
|
||||
struct wlr_buffer *buffer;
|
||||
// Source box, leave empty to use the whole buffer
|
||||
struct wlr_fbox src_box;
|
||||
// Destination box in output-buffer-local coordinates
|
||||
struct wlr_box dst_box;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue