refactor: use cctk

This commit is contained in:
Ashley Wulber 2024-11-23 02:02:52 -05:00
parent 1b8a399ebd
commit 6e91eabf4c
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
46 changed files with 224 additions and 183 deletions

View file

@ -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,

View file

@ -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`.

View file

@ -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 {