1
0
Fork 0
forked from wry/wry

wl_surface: check if partially-opaque surface is opaque within render bounds

This commit is contained in:
Julian Orth 2025-02-24 10:31:00 +01:00
parent c796602aab
commit 446779ab83
3 changed files with 33 additions and 1 deletions

View file

@ -1654,6 +1654,10 @@ impl WlSurface {
pub fn opaque(&self) -> bool {
self.is_opaque.get()
}
pub fn opaque_region(&self) -> Option<Rc<Region>> {
self.opaque_region.get()
}
}
object_base! {