idle: add a grace period
This commit is contained in:
parent
1ad3d11616
commit
e8be15a26c
29 changed files with 405 additions and 79 deletions
|
|
@ -893,6 +893,10 @@ impl Client {
|
|||
self.send(&ClientMessage::SetIdle { timeout })
|
||||
}
|
||||
|
||||
pub fn set_idle_grace_period(&self, period: Duration) {
|
||||
self.send(&ClientMessage::SetIdleGracePeriod { period })
|
||||
}
|
||||
|
||||
pub fn set_explicit_sync_enabled(&self, enabled: bool) {
|
||||
self.send(&ClientMessage::SetExplicitSyncEnabled { enabled })
|
||||
}
|
||||
|
|
|
|||
|
|
@ -527,6 +527,9 @@ pub enum ClientMessage<'a> {
|
|||
SetXScalingMode {
|
||||
mode: XScalingMode,
|
||||
},
|
||||
SetIdleGracePeriod {
|
||||
period: Duration,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue