Store ExtIdleNotificationV1
Needed to destroy the idle notification and create new one with different time.
This commit is contained in:
parent
92a5219eb9
commit
d908204700
1 changed files with 3 additions and 1 deletions
|
|
@ -114,6 +114,7 @@ struct StateInner {
|
||||||
struct State {
|
struct State {
|
||||||
inner: StateInner,
|
inner: StateInner,
|
||||||
outputs: Vec<Output>,
|
outputs: Vec<Output>,
|
||||||
|
_idle_notification: ext_idle_notification_v1::ExtIdleNotificationV1,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl State {
|
impl State {
|
||||||
|
|
@ -185,7 +186,7 @@ fn main() {
|
||||||
.collect()
|
.collect()
|
||||||
});
|
});
|
||||||
|
|
||||||
idle_notifier.get_idle_notification(IDLE_TIME, &seat, &qh, ());
|
let _idle_notification = idle_notifier.get_idle_notification(IDLE_TIME, &seat, &qh, ());
|
||||||
|
|
||||||
let mut state = State {
|
let mut state = State {
|
||||||
inner: StateInner {
|
inner: StateInner {
|
||||||
|
|
@ -196,6 +197,7 @@ fn main() {
|
||||||
single_pixel_buffer_manager,
|
single_pixel_buffer_manager,
|
||||||
qh,
|
qh,
|
||||||
},
|
},
|
||||||
|
_idle_notification,
|
||||||
outputs,
|
outputs,
|
||||||
};
|
};
|
||||||
loop {
|
loop {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue