feat: animate compositor geometry targets

This commit is contained in:
Samuel Onoja committed 2026-09-24 11:40:41 +01:00
1 parent 7f847b2c0c
commit b111cbf531
5 files changed
+106 -19

No files matched your search

+13 -5
View File
@@ -36,12 +36,20 @@ impl CompositorHandler for Ferese {
while let Some(parent) = get_parent(&root) {
root = parent;
}
if let Some(window) = self.space.elements().find(|window| {
window
.toplevel()
.is_some_and(|toplevel| toplevel.wl_surface() == &root)
}) {
let window = {
self.space
.elements()
.find(|window| {
window
.toplevel()
.is_some_and(|toplevel| toplevel.wl_surface() == &root)
})
.cloned()
};
if let Some(window) = window {
window.on_commit();
self.record_client_commit(&window);
}
}
xdg_shell::handle_commit(&mut self.popups, &mut self.space, surface);