desktop: Make window damage public

This commit is contained in:
Victor Brekenfeld 2021-12-30 15:57:40 +01:00
parent ab21df1943
commit 08ac5ba6d1
1 changed files with 1 additions and 4 deletions

View File

@ -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(