Track displayed surface visibility for idle inhibition
This commit is contained in:
1 parent
aa54ab1b2b
commit
6b2974d0fa
11 files changed
+206
-3
No files matched your search
@@ -44,8 +44,13 @@ impl Ferese {
|
||||
geometry.settle_presentation();
|
||||
}
|
||||
|
||||
window.with_surfaces(|surface, _| {
|
||||
self.display_presentation.remove_surface(&surface.into());
|
||||
});
|
||||
self.space.unmap_elem(&window);
|
||||
}
|
||||
self.refresh_idle_inhibition();
|
||||
|
||||
changed
|
||||
}
|
||||
|
||||
|
||||
@@ -53,6 +53,9 @@ impl Ferese {
|
||||
}
|
||||
|
||||
pub fn unregister_output(&mut self, output: &Output) {
|
||||
self.display_presentation.remove_output(output);
|
||||
self.refresh_idle_inhibition();
|
||||
|
||||
let Some(output_id) = self.output_ids.remove(output) else {
|
||||
return;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user