desktop: Make window damage public
This commit is contained in:
parent
ab21df1943
commit
08ac5ba6d1
|
@ -260,10 +260,7 @@ impl Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Damage of all the surfaces of this window
|
/// Damage of all the surfaces of this window
|
||||||
pub(super) fn accumulated_damage(
|
pub fn accumulated_damage(&self, for_values: Option<(&Space, &Output)>) -> Vec<Rectangle<i32, Logical>> {
|
||||||
&self,
|
|
||||||
for_values: Option<(&Space, &Output)>,
|
|
||||||
) -> Vec<Rectangle<i32, Logical>> {
|
|
||||||
let mut damage = Vec::new();
|
let mut damage = Vec::new();
|
||||||
if let Some(surface) = self.0.toplevel.get_surface() {
|
if let Some(surface) = self.0.toplevel.get_surface() {
|
||||||
damage.extend(
|
damage.extend(
|
||||||
|
|
Loading…
Reference in New Issue