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]]
name = "cursor-icon"
version = "1.1.0"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "96a6ac251f4a2aca6b3f91340350eab87ae57c3f127ffeb585e92bd336717991"
checksum = "f27ae1dd37df86211c42e150270f82743308803d90a6f6e6651cd730d5e1732f"
[[package]]
name = "d3d12"
@ -4729,7 +4729,7 @@ checksum = "8917285742e9f3e1683f0a9c4e6b57960b7314d0b08d30d1ecd426713ee2eee9"
[[package]]
name = "smithay"
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 = [
"aliasable",
"appendlist",
@ -4758,8 +4758,9 @@ dependencies = [
"pkg-config",
"profiling",
"rand 0.9.1",
"rustix 0.38.44",
"rustix 1.0.7",
"scopeguard",
"sha2",
"smallvec",
"tempfile",
"thiserror 2.0.12",
@ -4819,7 +4820,8 @@ dependencies = [
[[package]]
name = "smithay-egui"
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 = [
"cgmath",
"egui",

View file

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

View file

@ -7,12 +7,12 @@ use smithay::{
};
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 {
BackendData::Kms(kms) => kms,
_ => unreachable!(),
};
kms.syncobj_state.as_mut().unwrap()
kms.syncobj_state.as_mut()
}
}