layer-surface: fix clip box coordinates
The clip box must be relative to the layer surface, not the output.
This commit is contained in:
parent
3529463569
commit
1b5dd21ee6
@ -393,11 +393,15 @@ fn sendLayerConfigures(
|
|||||||
usable_box.* = new_usable_box;
|
usable_box.* = new_usable_box;
|
||||||
}
|
}
|
||||||
|
|
||||||
layer_surface.popup_tree.node.setPosition(
|
const x = layer_surface.scene_layer_surface.tree.node.x;
|
||||||
layer_surface.scene_layer_surface.tree.node.x,
|
const y = layer_surface.scene_layer_surface.tree.node.y;
|
||||||
layer_surface.scene_layer_surface.tree.node.y,
|
layer_surface.popup_tree.node.setPosition(x, y);
|
||||||
);
|
layer_surface.scene_layer_surface.tree.node.subsurfaceTreeSetClip(&.{
|
||||||
layer_surface.scene_layer_surface.tree.node.subsurfaceTreeSetClip(&full_box);
|
.x = -x,
|
||||||
|
.y = -y,
|
||||||
|
.width = full_box.width,
|
||||||
|
.height = full_box.height,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user