forge
Explore
Log in

Don't you dare go Hollow

Upgrade Smithay (fix disappeared connectors, fix DnD hang in Electron)

Browse files at this commit

26ff5f4bf1412520121a50d6444c0742e9d4f5e6Ivan MolodetskikhParent: d7905e6
Cargo.lockmodified+26 -26
@@ -1722,9 +1722,9 @@ dependencies = [
17221722
17231723 [[package]]
17241724 name = "input"
1725-version = "0.9.1"
1725+version = "0.10.0"
17261726 source = "registry+https://github.com/rust-lang/crates.io-index"
1727-checksum = "fbdc09524a91f9cacd26f16734ff63d7dc650daffadd2b6f84d17a285bd875a9"
1727+checksum = "f9793345a65d71317763a33066b5d8351f8760dde8d4930fe9e39b5f14a7959d"
17281728 dependencies = [
17291729 "bitflags 2.11.0",
17301730 "input-sys",
@@ -1735,9 +1735,9 @@ dependencies = [
17351735
17361736 [[package]]
17371737 name = "input-sys"
1738-version = "1.18.0"
1738+version = "1.19.0"
17391739 source = "registry+https://github.com/rust-lang/crates.io-index"
1740-checksum = "bd4f5b4d1c00331c5245163aacfe5f20be75b564c7112d45893d4ae038119eb0"
1740+checksum = "36eee07d8e02bd95bf52b2e642cf13d33701b94c6e4b04fbf1d1fb07e9cb19e7"
17411741
17421742 [[package]]
17431743 name = "insta"
@@ -3470,7 +3470,7 @@ checksum = "b7c388c1b5e93756d0c740965c41e8822f866621d41acbdf6336a6a168f8840c"
34703470 [[package]]
34713471 name = "smithay"
34723472 version = "0.7.0"
3473-source = "git+https://github.com/Smithay/smithay.git?rev=dce4d34e7421559b661af9c519904f4b24346148#dce4d34e7421559b661af9c519904f4b24346148"
3473+source = "git+https://github.com/Smithay/smithay.git?rev=dba255cd18c1a808c85a1d1144ad48e0b3f44b8f#dba255cd18c1a808c85a1d1144ad48e0b3f44b8f"
34743474 dependencies = [
34753475 "aliasable",
34763476 "appendlist",
@@ -3545,7 +3545,7 @@ dependencies = [
35453545 [[package]]
35463546 name = "smithay-drm-extras"
35473547 version = "0.1.0"
3548-source = "git+https://github.com/Smithay/smithay.git?rev=dce4d34e7421559b661af9c519904f4b24346148#dce4d34e7421559b661af9c519904f4b24346148"
3548+source = "git+https://github.com/Smithay/smithay.git?rev=dba255cd18c1a808c85a1d1144ad48e0b3f44b8f#dba255cd18c1a808c85a1d1144ad48e0b3f44b8f"
35493549 dependencies = [
35503550 "drm",
35513551 "libdisplay-info",
@@ -4120,9 +4120,9 @@ dependencies = [
41204120
41214121 [[package]]
41224122 name = "wayland-backend"
4123-version = "0.3.14"
4123+version = "0.3.15"
41244124 source = "registry+https://github.com/rust-lang/crates.io-index"
4125-checksum = "aa75f400b7f719bcd68b3f47cd939ba654cedeef690f486db71331eec4c6a406"
4125+checksum = "2857dd20b54e916ec7253b3d6b4d5c4d7d4ca2c33c2e11c6c76a99bd8744755d"
41264126 dependencies = [
41274127 "cc",
41284128 "downcast-rs",
@@ -4134,9 +4134,9 @@ dependencies = [
41344134
41354135 [[package]]
41364136 name = "wayland-client"
4137-version = "0.31.13"
4137+version = "0.31.14"
41384138 source = "registry+https://github.com/rust-lang/crates.io-index"
4139-checksum = "ab51d9f7c071abeee76007e2b742499e535148035bb835f97aaed1338cf516c3"
4139+checksum = "645c7c96bb74690c3189b5c9cb4ca1627062bb23693a4fad9d8c3de958260144"
41404140 dependencies = [
41414141 "bitflags 2.11.0",
41424142 "rustix 1.1.4",
@@ -4157,9 +4157,9 @@ dependencies = [
41574157
41584158 [[package]]
41594159 name = "wayland-cursor"
4160-version = "0.31.13"
4160+version = "0.31.14"
41614161 source = "registry+https://github.com/rust-lang/crates.io-index"
4162-checksum = "4b3298683470fbdc6ca40151dfc48c8f2fd4c41a26e13042f801f85002384091"
4162+checksum = "4a52d18780be9b1314328a3de5f930b73d2200112e3849ca6cb11822793fb34d"
41634163 dependencies = [
41644164 "rustix 1.1.4",
41654165 "wayland-client",
@@ -4168,9 +4168,9 @@ dependencies = [
41684168
41694169 [[package]]
41704170 name = "wayland-egl"
4171-version = "0.32.10"
4171+version = "0.32.11"
41724172 source = "registry+https://github.com/rust-lang/crates.io-index"
4173-checksum = "429e5852d67d4be674b0e413962186b5115f77012e765617ee97b6480d5d6ea7"
4173+checksum = "9b97bdb7c49e5bd9b7562f38ff84f0dad47079fdc9e926f691a787f6dbc05451"
41744174 dependencies = [
41754175 "wayland-backend",
41764176 "wayland-sys",
@@ -4178,9 +4178,9 @@ dependencies = [
41784178
41794179 [[package]]
41804180 name = "wayland-protocols"
4181-version = "0.32.11"
4181+version = "0.32.12"
41824182 source = "registry+https://github.com/rust-lang/crates.io-index"
4183-checksum = "b23b5df31ceff1328f06ac607591d5ba360cf58f90c8fad4ac8d3a55a3c4aec7"
4183+checksum = "563a85523cade2429938e790815fd7319062103b9f4a2dc806e9b53b95982d8f"
41844184 dependencies = [
41854185 "bitflags 2.11.0",
41864186 "wayland-backend",
@@ -4191,9 +4191,9 @@ dependencies = [
41914191
41924192 [[package]]
41934193 name = "wayland-protocols-misc"
4194-version = "0.3.11"
4194+version = "0.3.12"
41954195 source = "registry+https://github.com/rust-lang/crates.io-index"
4196-checksum = "429b99200febaf95d4f4e46deff6fe4382bcff3280ee16a41cf887b3c3364984"
4196+checksum = "6e9567599ef23e09b8dad6e429e5738d4509dfc46b3b21f32841a304d16b29c8"
41974197 dependencies = [
41984198 "bitflags 2.11.0",
41994199 "wayland-backend",
@@ -4217,9 +4217,9 @@ dependencies = [
42174217
42184218 [[package]]
42194219 name = "wayland-protocols-wlr"
4220-version = "0.3.11"
4220+version = "0.3.12"
42214221 source = "registry+https://github.com/rust-lang/crates.io-index"
4222-checksum = "78248e4cc0eff8163370ba5c158630dcae1f3497a586b826eca2ef5f348d6235"
4222+checksum = "eb04e52f7836d7c7976c78ca0250d61e33873c34156a2a1fc9474828ec268234"
42234223 dependencies = [
42244224 "bitflags 2.11.0",
42254225 "wayland-backend",
@@ -4231,9 +4231,9 @@ dependencies = [
42314231
42324232 [[package]]
42334233 name = "wayland-scanner"
4234-version = "0.31.9"
4234+version = "0.31.10"
42354235 source = "registry+https://github.com/rust-lang/crates.io-index"
4236-checksum = "c86287151a309799b821ca709b7345a048a2956af05957c89cb824ab919fa4e3"
4236+checksum = "9c324a910fd86ebdc364a3e61ec1f11737d3b1d6c273c0239ee8ff4bc0d24b4a"
42374237 dependencies = [
42384238 "proc-macro2",
42394239 "quick-xml 0.39.2",
@@ -4242,9 +4242,9 @@ dependencies = [
42424242
42434243 [[package]]
42444244 name = "wayland-server"
4245-version = "0.31.12"
4245+version = "0.31.13"
42464246 source = "registry+https://github.com/rust-lang/crates.io-index"
4247-checksum = "63736a4a73e781cf6a736aa32c5d6773c3eb5389197562742a8c611b49b5e359"
4247+checksum = "cc1846eb04c49182e04f4a099e2a830a2b745610bbc1d61246e206f29c7000a0"
42484248 dependencies = [
42494249 "bitflags 2.11.0",
42504250 "downcast-rs",
@@ -4255,9 +4255,9 @@ dependencies = [
42554255
42564256 [[package]]
42574257 name = "wayland-sys"
4258-version = "0.31.10"
4258+version = "0.31.11"
42594259 source = "registry+https://github.com/rust-lang/crates.io-index"
4260-checksum = "374f6b70e8e0d6bf9461a32988fd553b59ff630964924dad6e4a4eb6bd538d17"
4260+checksum = "d8eab23fefc9e41f8e841df4a9c707e8a8c4ed26e944ef69297184de2785e3be"
42614261 dependencies = [
42624262 "dlib",
42634263 "libc",
Cargo.tomlmodified+6 -6
@@ -31,14 +31,14 @@ tracy-client = { version = "0.18.4", default-features = false }
3131 [workspace.dependencies.smithay]
3232 # version = "0.4.1"
3333 git = "https://github.com/Smithay/smithay.git"
34-rev = "dce4d34e7421559b661af9c519904f4b24346148"
34+rev = "dba255cd18c1a808c85a1d1144ad48e0b3f44b8f"
3535 # path = "../smithay"
3636 default-features = false
3737
3838 [workspace.dependencies.smithay-drm-extras]
3939 # version = "0.1.0"
4040 git = "https://github.com/Smithay/smithay.git"
41-rev = "dce4d34e7421559b661af9c519904f4b24346148"
41+rev = "dba255cd18c1a808c85a1d1144ad48e0b3f44b8f"
4242 # path = "../smithay/smithay-drm-extras"
4343
4444 [package]
@@ -77,7 +77,7 @@ fastrand = "2.3.0"
7777 futures-util = { version = "0.3.32", default-features = false, features = ["std", "io"] }
7878 git-version = "0.3.9"
7979 glam = "0.32.1"
80-input = { version = "0.9.1", features = ["libinput_1_21"] }
80+input = { version = "0.10.0", features = ["libinput_1_21"] }
8181 keyframe = { version = "1.1.1", default-features = false }
8282 libc = "0.2.182"
8383 libdisplay-info = "0.3.0"
@@ -97,9 +97,9 @@ smithay-drm-extras.workspace = true
9797 tracing-subscriber.workspace = true
9898 tracing.workspace = true
9999 tracy-client.workspace = true
100-wayland-backend = "0.3.14"
101-wayland-scanner = "0.31.9"
102-wayland-server = { version = "0.31.12", features = ["libwayland_1_23"] }
100+wayland-backend = "0.3.15"
101+wayland-scanner = "0.31.10"
102+wayland-server = { version = "0.31.13", features = ["libwayland_1_23"] }
103103 xcursor = "0.3.10"
104104 zbus = { version = "5.13.2", optional = true }
105105
src/backend/tty.rsmodified+2 -2
@@ -1419,7 +1419,7 @@ impl Tty {
14191419
14201420 // Create the compositor.
14211421 let res = DrmCompositor::new(
1422- OutputModeSource::Auto(output.clone()),
1422+ OutputModeSource::Auto(output.downgrade()),
14231423 surface,
14241424 None,
14251425 device.allocator.clone(),
@@ -1449,7 +1449,7 @@ impl Tty {
14491449 .create_surface(crtc, mode, &[connector.handle()])?;
14501450
14511451 DrmCompositor::new(
1452- OutputModeSource::Auto(output.clone()),
1452+ OutputModeSource::Auto(output.downgrade()),
14531453 surface,
14541454 None,
14551455 device.allocator.clone(),
src/handlers/compositor.rsmodified+3 -3
@@ -508,7 +508,7 @@ impl CompositorHandler for State {
508508 // So, this may come out empty, and then the toplevel pre-commit hook will be removed in the
509509 // subsequent toplevel_destroyed() call.
510510 if let Some(hook) = self.niri.dmabuf_pre_commit_hook.remove(surface) {
511- remove_pre_commit_hook(surface, hook);
511+ remove_pre_commit_hook(surface, &hook);
512512 }
513513 }
514514 }
@@ -572,13 +572,13 @@ impl State {
572572 let s = surface.clone();
573573 if let Some(prev) = self.niri.dmabuf_pre_commit_hook.insert(s, hook) {
574574 error!("tried to add dmabuf pre-commit hook when there was already one");
575- remove_pre_commit_hook(surface, prev);
575+ remove_pre_commit_hook(surface, &prev);
576576 }
577577 }
578578
579579 pub fn remove_default_dmabuf_pre_commit_hook(&mut self, surface: &WlSurface) {
580580 if let Some(hook) = self.niri.dmabuf_pre_commit_hook.remove(surface) {
581- remove_pre_commit_hook(surface, hook);
581+ remove_pre_commit_hook(surface, &hook);
582582 } else {
583583 error!("tried to remove dmabuf pre-commit hook but there was none");
584584 }
src/input/mod.rsmodified+5 -1
@@ -4678,7 +4678,11 @@ pub fn apply_libinput_settings(config: &niri_config::Input, device: &mut input::
46784678 let _ = device.config_tap_set_enabled(c.tap);
46794679 let _ = device.config_dwt_set_enabled(c.dwt);
46804680 let _ = device.config_dwtp_set_enabled(c.dwtp);
4681- let _ = device.config_tap_set_drag_lock_enabled(c.drag_lock);
4681+ let _ = device.config_tap_set_drag_lock_enabled(if c.drag_lock {
4682+ input::DragLockState::EnabledTimeout
4683+ } else {
4684+ input::DragLockState::Disabled
4685+ });
46824686 let _ = device.config_scroll_set_natural_scroll_enabled(c.natural_scroll);
46834687 let _ = device.config_accel_set_speed(c.accel_speed.0);
46844688 let _ = device.config_left_handed_set(c.left_handed);
src/layer/mapped.rsmodified+1 -1
@@ -328,6 +328,6 @@ impl MappedLayer {
328328
329329 impl Drop for MappedLayer {
330330 fn drop(&mut self) {
331- remove_pre_commit_hook(self.surface.wl_surface(), self.pre_commit_hook.clone());
331+ remove_pre_commit_hook(self.surface.wl_surface(), &self.pre_commit_hook);
332332 }
333333 }
src/window/mapped.rsmodified+1 -1
@@ -598,7 +598,7 @@ impl Mapped {
598598
599599 impl Drop for Mapped {
600600 fn drop(&mut self) {
601- remove_pre_commit_hook(self.toplevel().wl_surface(), self.pre_commit_hook.clone());
601+ remove_pre_commit_hook(self.toplevel().wl_surface(), &self.pre_commit_hook);
602602 }
603603 }
604604