1
0
Fork 0
forked from wry/wry

surface: don't destroy idle inhibitors when destroying node

This commit is contained in:
Julian Orth 2024-03-29 18:37:03 +01:00
parent 7661e011c0
commit 566a05494a
2 changed files with 4 additions and 4 deletions

View file

@ -32,7 +32,7 @@ impl ZwpIdleInhibitorV1 {
}
pub fn install(self: &Rc<Self>) -> Result<(), ZwpIdleInhibitorV1Error> {
self.surface.idle_inhibitors.set(self.id, self.clone());
self.surface.idle_inhibitors.insert(self.id, self.clone());
if self.surface.visible.get() {
self.activate();
}