wl_surface: check if partially-opaque surface is opaque within render bounds
This commit is contained in:
parent
c796602aab
commit
446779ab83
3 changed files with 33 additions and 1 deletions
|
|
@ -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! {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue