chore: Update smithay

This commit is contained in:
Victoria Brekenfeld 2025-05-21 22:04:02 +02:00 committed by Victoria Brekenfeld
parent 913ed90b04
commit 4c0c61e94b
3 changed files with 13 additions and 13 deletions

12
Cargo.lock generated
View file

@ -1056,9 +1056,9 @@ checksum = "1f791803201ab277ace03903de1594460708d2d54df6053f2d9e82f592b19e3b"
[[package]] [[package]]
name = "cursor-icon" name = "cursor-icon"
version = "1.1.0" version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "96a6ac251f4a2aca6b3f91340350eab87ae57c3f127ffeb585e92bd336717991" checksum = "f27ae1dd37df86211c42e150270f82743308803d90a6f6e6651cd730d5e1732f"
[[package]] [[package]]
name = "d3d12" name = "d3d12"
@ -4729,7 +4729,7 @@ checksum = "8917285742e9f3e1683f0a9c4e6b57960b7314d0b08d30d1ecd426713ee2eee9"
[[package]] [[package]]
name = "smithay" name = "smithay"
version = "0.6.0" version = "0.6.0"
source = "git+https://github.com/smithay/smithay//?rev=c1f13a6#c1f13a6b9605c9f7009122a7b2b34f210255dac3" source = "git+https://github.com/smithay/smithay.git?rev=7ad90b5#7ad90b55df53bf9066211d1e64f276e88c41eb00"
dependencies = [ dependencies = [
"aliasable", "aliasable",
"appendlist", "appendlist",
@ -4758,8 +4758,9 @@ dependencies = [
"pkg-config", "pkg-config",
"profiling", "profiling",
"rand 0.9.1", "rand 0.9.1",
"rustix 0.38.44", "rustix 1.0.7",
"scopeguard", "scopeguard",
"sha2",
"smallvec", "smallvec",
"tempfile", "tempfile",
"thiserror 2.0.12", "thiserror 2.0.12",
@ -4819,7 +4820,8 @@ dependencies = [
[[package]] [[package]]
name = "smithay-egui" name = "smithay-egui"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/Smithay/smithay-egui.git?rev=e720136#e7201366b88e4fb20d0c6618a6cac9acc6299e07" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0f69e928bd02c12d7b66ba74fc68b984d77181be4309dd969ed4ef141c150241"
dependencies = [ dependencies = [
"cgmath", "cgmath",
"egui", "egui",

View file

@ -71,6 +71,7 @@ branch = "feature/copy_clone"
git = "https://github.com/Drakulix/id-tree.git" git = "https://github.com/Drakulix/id-tree.git"
[dependencies.smithay] [dependencies.smithay]
version = "0.6.0"
default-features = false default-features = false
features = [ features = [
"backend_drm", "backend_drm",
@ -89,14 +90,11 @@ features = [
"wayland_frontend", "wayland_frontend",
"xwayland", "xwayland",
] ]
git = "https://github.com/smithay/smithay"
rev = "a503d98"
[dependencies.smithay-egui] [dependencies.smithay-egui]
version = "0.1.0"
features = ["svg"] features = ["svg"]
git = "https://github.com/Smithay/smithay-egui.git"
optional = true optional = true
rev = "e720136"
[features] [features]
debug = ["egui", "egui_plot", "smithay-egui", "anyhow/backtrace"] debug = ["egui", "egui_plot", "smithay-egui", "anyhow/backtrace"]
@ -124,5 +122,5 @@ lto = "fat"
cosmic-protocols = { git = "https://github.com/pop-os//cosmic-protocols", branch = "main" } cosmic-protocols = { git = "https://github.com/pop-os//cosmic-protocols", branch = "main" }
cosmic-client-toolkit = { git = "https://github.com/pop-os//cosmic-protocols", branch = "main" } cosmic-client-toolkit = { git = "https://github.com/pop-os//cosmic-protocols", branch = "main" }
[patch."https://github.com/smithay/smithay"] [patch.crates-io]
smithay = { git = "https://github.com/smithay/smithay//", rev = "c1f13a6" } smithay = { git = "https://github.com/smithay/smithay.git", rev = "7ad90b5" }

View file

@ -7,12 +7,12 @@ use smithay::{
}; };
impl DrmSyncobjHandler for State { impl DrmSyncobjHandler for State {
fn drm_syncobj_state(&mut self) -> &mut DrmSyncobjState { fn drm_syncobj_state(&mut self) -> Option<&mut DrmSyncobjState> {
let kms = match &mut self.backend { let kms = match &mut self.backend {
BackendData::Kms(kms) => kms, BackendData::Kms(kms) => kms,
_ => unreachable!(), _ => unreachable!(),
}; };
kms.syncobj_state.as_mut().unwrap() kms.syncobj_state.as_mut()
} }
} }