popover: Use thread-safe reference

This reference will be modified from the screensaver thread.
This commit is contained in:
Dorota Czaplejewicz
2022-12-07 15:05:20 +00:00
parent e88410d412
commit 3366090454
2 changed files with 23 additions and 8 deletions

View File

@ -30,7 +30,7 @@ mod c {
use crate::outputs::Outputs;
use crate::state;
use crate::submission::Submission;
use crate::util::c::Wrapped;
use crate::util::c::{ArcWrapped, Wrapped};
use crate::vkeyboard::c::ZwpVirtualKeyboardV1;
/// DbusHandler*
@ -132,7 +132,7 @@ mod c {
state_manager: Wrapped::new(state_manager),
receiver: Wrapped::new(receiver),
wayland: Box::into_raw(wayland),
popover: Wrapped::new(actors::popover::State::new(true)),
popover: ArcWrapped::new(actors::popover::State::new(true)),
}
}