floating: Throttle resizes

This commit is contained in:
Victoria Brekenfeld 2025-01-15 19:55:29 +01:00 committed by Victoria Brekenfeld
parent df74a322ab
commit e217a91fec
2 changed files with 6 additions and 2 deletions

View file

@ -120,7 +120,9 @@ impl ResizeSurfaceGrab {
}, },
self.last_window_size.as_global(), self.last_window_size.as_global(),
)); ));
self.window.configure(); if self.window.latest_size_committed() {
self.window.configure();
}
false false
} }

View file

@ -990,7 +990,9 @@ impl FloatingLayout {
geo.as_local() geo.as_local()
.to_global(self.space.outputs().next().unwrap()), .to_global(self.space.outputs().next().unwrap()),
); );
mapped.configure(); if mapped.latest_size_committed() {
mapped.configure();
}
true true
} }