mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-18 06:47:31 -04:00
backend/wayland: do not require viewporter for empty layer src_box
This commit is contained in:
parent
09c7af0bd4
commit
2bd5879950
1 changed files with 3 additions and 2 deletions
|
|
@ -255,10 +255,11 @@ static bool layer_needs_viewport(struct wlr_output_layer_state *layer_state) {
|
|||
layer_state->dst_box.height != layer_state->buffer->height) {
|
||||
return true;
|
||||
}
|
||||
if (layer_state->src_box.x != 0 ||
|
||||
if (!wlr_fbox_empty(&layer_state->src_box) &&
|
||||
(layer_state->src_box.x != 0 ||
|
||||
layer_state->src_box.y != 0 ||
|
||||
layer_state->src_box.width != layer_state->dst_box.width ||
|
||||
layer_state->src_box.height != layer_state->dst_box.height) {
|
||||
layer_state->src_box.height != layer_state->dst_box.height)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue