refactor: use cctk
This commit is contained in:
parent
1b8a399ebd
commit
6e91eabf4c
46 changed files with 224 additions and 183 deletions
|
|
@ -18,8 +18,8 @@ use crate::{
|
|||
};
|
||||
|
||||
use raw_window_handle::HasDisplayHandle;
|
||||
use sctk::reexports::calloop_wayland_source::WaylandSource;
|
||||
use sctk::{
|
||||
use cctk::sctk::reexports::calloop_wayland_source::WaylandSource;
|
||||
use cctk::sctk::{
|
||||
activation::ActivationState,
|
||||
compositor::CompositorState,
|
||||
globals::GlobalData,
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ use iced_futures::futures::{
|
|||
task::{Context, Poll},
|
||||
Sink,
|
||||
};
|
||||
use sctk::reexports::calloop;
|
||||
use cctk::sctk::reexports::calloop;
|
||||
use std::pin::Pin;
|
||||
|
||||
/// An event loop proxy that implements `Sink`.
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ use iced_runtime::{
|
|||
},
|
||||
},
|
||||
};
|
||||
use sctk::{
|
||||
use cctk::sctk::{
|
||||
activation::{ActivationState, RequestData},
|
||||
compositor::CompositorState,
|
||||
error::GlobalError,
|
||||
|
|
@ -980,7 +980,7 @@ impl SctkState {
|
|||
}
|
||||
}
|
||||
if self.pending_popup.replace((popup, 0)).is_none() {
|
||||
let timer = sctk::reexports::calloop::timer::Timer::from_duration(Duration::from_millis(30));
|
||||
let timer = cctk::sctk::reexports::calloop::timer::Timer::from_duration(Duration::from_millis(30));
|
||||
let queue_handle = self.queue_handle.clone();
|
||||
_ = self.loop_handle.insert_source(timer, move |_, _, state| {
|
||||
let Some((popup, attempt)) = state.pending_popup.take() else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue