control-center: add idle pane
This commit is contained in:
parent
eb917648c1
commit
ba044793dc
7 changed files with 101 additions and 18 deletions
|
|
@ -44,12 +44,12 @@ impl ZwpIdleInhibitorV1 {
|
|||
|
||||
pub fn activate(self: &Rc<Self>) {
|
||||
let state = &self.client.state;
|
||||
state.idle.add_inhibitor(self);
|
||||
state.idle.add_inhibitor(state, self);
|
||||
}
|
||||
|
||||
pub fn deactivate(&self) {
|
||||
let state = &self.client.state;
|
||||
state.idle.remove_inhibitor(self);
|
||||
state.idle.remove_inhibitor(state, self);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue