surface: don't destroy idle inhibitors when destroying node
This commit is contained in:
parent
7661e011c0
commit
566a05494a
2 changed files with 4 additions and 4 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue