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

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"
[dependencies]
sctk = { package = "smithay-client-toolkit", git = "https://github.com/smithay/client-toolkit", rev = "828b1eb" }
# sctk = { package = "smithay-client-toolkit", git = "https://github.com/smithay/client-toolkit", rev = "828b1eb" }
iced = { path = "../..", default-features = false, features = [
"tokio",
"wayland",
@ -17,3 +17,4 @@ env_logger = "0.10"
futures-channel = "0.3.29"
calloop = "0.12.3"
rustix = { version = "0.38.30", features = ["fs", "shm"] }
cctk.workspace = true

View file

@ -7,7 +7,7 @@ use iced::{
window::{self, Id, Settings},
Element, Length, Subscription, Task,
};
use sctk::reexports::client::{Connection, Proxy};
use cctk::sctk::reexports::client::{Connection, Proxy};
mod wayland;

View file

@ -5,7 +5,7 @@ use iced::{
};
use iced_runtime::futures::subscription;
use rustix::{io::Errno, shm::ShmOFlags};
use sctk::{
use cctk::sctk::{
reexports::{
calloop_wayland_source::WaylandSource,
client::{
@ -40,7 +40,7 @@ impl ProvidesRegistryState for AppData {
&mut self.registry_state
}
sctk::registry_handlers!();
cctk::sctk::registry_handlers!();
}
impl ShmHandler for AppData {