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 = [
1722 1722
1723 [[package]]1723 [[package]]
1724 name = "input"1724 name = "input"
1725-version = "0.9.1"1725+version = "0.10.0"
1726 source = "registry+https://github.com/rust-lang/crates.io-index"1726 source = "registry+https://github.com/rust-lang/crates.io-index"
1727-checksum = "fbdc09524a91f9cacd26f16734ff63d7dc650daffadd2b6f84d17a285bd875a9"1727+checksum = "f9793345a65d71317763a33066b5d8351f8760dde8d4930fe9e39b5f14a7959d"
1728 dependencies = [1728 dependencies = [
1729 "bitflags 2.11.0",1729 "bitflags 2.11.0",
1730 "input-sys",1730 "input-sys",
@@ -1735,9 +1735,9 @@ dependencies = [
1735 1735
1736 [[package]]1736 [[package]]
1737 name = "input-sys"1737 name = "input-sys"
1738-version = "1.18.0"1738+version = "1.19.0"
1739 source = "registry+https://github.com/rust-lang/crates.io-index"1739 source = "registry+https://github.com/rust-lang/crates.io-index"
1740-checksum = "bd4f5b4d1c00331c5245163aacfe5f20be75b564c7112d45893d4ae038119eb0"1740+checksum = "36eee07d8e02bd95bf52b2e642cf13d33701b94c6e4b04fbf1d1fb07e9cb19e7"
1741 1741
1742 [[package]]1742 [[package]]
1743 name = "insta"1743 name = "insta"
@@ -3470,7 +3470,7 @@ checksum = "b7c388c1b5e93756d0c740965c41e8822f866621d41acbdf6336a6a168f8840c"
3470 [[package]]3470 [[package]]
3471 name = "smithay"3471 name = "smithay"
3472 version = "0.7.0"3472 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"
3474 dependencies = [3474 dependencies = [
3475 "aliasable",3475 "aliasable",
3476 "appendlist",3476 "appendlist",
@@ -3545,7 +3545,7 @@ dependencies = [
3545 [[package]]3545 [[package]]
3546 name = "smithay-drm-extras"3546 name = "smithay-drm-extras"
3547 version = "0.1.0"3547 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"
3549 dependencies = [3549 dependencies = [
3550 "drm",3550 "drm",
3551 "libdisplay-info",3551 "libdisplay-info",
@@ -4120,9 +4120,9 @@ dependencies = [
4120 4120
4121 [[package]]4121 [[package]]
4122 name = "wayland-backend"4122 name = "wayland-backend"
4123-version = "0.3.14"4123+version = "0.3.15"
4124 source = "registry+https://github.com/rust-lang/crates.io-index"4124 source = "registry+https://github.com/rust-lang/crates.io-index"
4125-checksum = "aa75f400b7f719bcd68b3f47cd939ba654cedeef690f486db71331eec4c6a406"4125+checksum = "2857dd20b54e916ec7253b3d6b4d5c4d7d4ca2c33c2e11c6c76a99bd8744755d"
4126 dependencies = [4126 dependencies = [
4127 "cc",4127 "cc",
4128 "downcast-rs",4128 "downcast-rs",
@@ -4134,9 +4134,9 @@ dependencies = [
4134 4134
4135 [[package]]4135 [[package]]
4136 name = "wayland-client"4136 name = "wayland-client"
4137-version = "0.31.13"4137+version = "0.31.14"
4138 source = "registry+https://github.com/rust-lang/crates.io-index"4138 source = "registry+https://github.com/rust-lang/crates.io-index"
4139-checksum = "ab51d9f7c071abeee76007e2b742499e535148035bb835f97aaed1338cf516c3"4139+checksum = "645c7c96bb74690c3189b5c9cb4ca1627062bb23693a4fad9d8c3de958260144"
4140 dependencies = [4140 dependencies = [
4141 "bitflags 2.11.0",4141 "bitflags 2.11.0",
4142 "rustix 1.1.4",4142 "rustix 1.1.4",
@@ -4157,9 +4157,9 @@ dependencies = [
4157 4157
4158 [[package]]4158 [[package]]
4159 name = "wayland-cursor"4159 name = "wayland-cursor"
4160-version = "0.31.13"4160+version = "0.31.14"
4161 source = "registry+https://github.com/rust-lang/crates.io-index"4161 source = "registry+https://github.com/rust-lang/crates.io-index"
4162-checksum = "4b3298683470fbdc6ca40151dfc48c8f2fd4c41a26e13042f801f85002384091"4162+checksum = "4a52d18780be9b1314328a3de5f930b73d2200112e3849ca6cb11822793fb34d"
4163 dependencies = [4163 dependencies = [
4164 "rustix 1.1.4",4164 "rustix 1.1.4",
4165 "wayland-client",4165 "wayland-client",
@@ -4168,9 +4168,9 @@ dependencies = [
4168 4168
4169 [[package]]4169 [[package]]
4170 name = "wayland-egl"4170 name = "wayland-egl"
4171-version = "0.32.10"4171+version = "0.32.11"
4172 source = "registry+https://github.com/rust-lang/crates.io-index"4172 source = "registry+https://github.com/rust-lang/crates.io-index"
4173-checksum = "429e5852d67d4be674b0e413962186b5115f77012e765617ee97b6480d5d6ea7"4173+checksum = "9b97bdb7c49e5bd9b7562f38ff84f0dad47079fdc9e926f691a787f6dbc05451"
4174 dependencies = [4174 dependencies = [
4175 "wayland-backend",4175 "wayland-backend",
4176 "wayland-sys",4176 "wayland-sys",
@@ -4178,9 +4178,9 @@ dependencies = [
4178 4178
4179 [[package]]4179 [[package]]
4180 name = "wayland-protocols"4180 name = "wayland-protocols"
4181-version = "0.32.11"4181+version = "0.32.12"
4182 source = "registry+https://github.com/rust-lang/crates.io-index"4182 source = "registry+https://github.com/rust-lang/crates.io-index"
4183-checksum = "b23b5df31ceff1328f06ac607591d5ba360cf58f90c8fad4ac8d3a55a3c4aec7"4183+checksum = "563a85523cade2429938e790815fd7319062103b9f4a2dc806e9b53b95982d8f"
4184 dependencies = [4184 dependencies = [
4185 "bitflags 2.11.0",4185 "bitflags 2.11.0",
4186 "wayland-backend",4186 "wayland-backend",
@@ -4191,9 +4191,9 @@ dependencies = [
4191 4191
4192 [[package]]4192 [[package]]
4193 name = "wayland-protocols-misc"4193 name = "wayland-protocols-misc"
4194-version = "0.3.11"4194+version = "0.3.12"
4195 source = "registry+https://github.com/rust-lang/crates.io-index"4195 source = "registry+https://github.com/rust-lang/crates.io-index"
4196-checksum = "429b99200febaf95d4f4e46deff6fe4382bcff3280ee16a41cf887b3c3364984"4196+checksum = "6e9567599ef23e09b8dad6e429e5738d4509dfc46b3b21f32841a304d16b29c8"
4197 dependencies = [4197 dependencies = [
4198 "bitflags 2.11.0",4198 "bitflags 2.11.0",
4199 "wayland-backend",4199 "wayland-backend",
@@ -4217,9 +4217,9 @@ dependencies = [
4217 4217
4218 [[package]]4218 [[package]]
4219 name = "wayland-protocols-wlr"4219 name = "wayland-protocols-wlr"
4220-version = "0.3.11"4220+version = "0.3.12"
4221 source = "registry+https://github.com/rust-lang/crates.io-index"4221 source = "registry+https://github.com/rust-lang/crates.io-index"
4222-checksum = "78248e4cc0eff8163370ba5c158630dcae1f3497a586b826eca2ef5f348d6235"4222+checksum = "eb04e52f7836d7c7976c78ca0250d61e33873c34156a2a1fc9474828ec268234"
4223 dependencies = [4223 dependencies = [
4224 "bitflags 2.11.0",4224 "bitflags 2.11.0",
4225 "wayland-backend",4225 "wayland-backend",
@@ -4231,9 +4231,9 @@ dependencies = [
4231 4231
4232 [[package]]4232 [[package]]
4233 name = "wayland-scanner"4233 name = "wayland-scanner"
4234-version = "0.31.9"4234+version = "0.31.10"
4235 source = "registry+https://github.com/rust-lang/crates.io-index"4235 source = "registry+https://github.com/rust-lang/crates.io-index"
4236-checksum = "c86287151a309799b821ca709b7345a048a2956af05957c89cb824ab919fa4e3"4236+checksum = "9c324a910fd86ebdc364a3e61ec1f11737d3b1d6c273c0239ee8ff4bc0d24b4a"
4237 dependencies = [4237 dependencies = [
4238 "proc-macro2",4238 "proc-macro2",
4239 "quick-xml 0.39.2",4239 "quick-xml 0.39.2",
@@ -4242,9 +4242,9 @@ dependencies = [
4242 4242
4243 [[package]]4243 [[package]]
4244 name = "wayland-server"4244 name = "wayland-server"
4245-version = "0.31.12"4245+version = "0.31.13"
4246 source = "registry+https://github.com/rust-lang/crates.io-index"4246 source = "registry+https://github.com/rust-lang/crates.io-index"
4247-checksum = "63736a4a73e781cf6a736aa32c5d6773c3eb5389197562742a8c611b49b5e359"4247+checksum = "cc1846eb04c49182e04f4a099e2a830a2b745610bbc1d61246e206f29c7000a0"
4248 dependencies = [4248 dependencies = [
4249 "bitflags 2.11.0",4249 "bitflags 2.11.0",
4250 "downcast-rs",4250 "downcast-rs",
@@ -4255,9 +4255,9 @@ dependencies = [
4255 4255
4256 [[package]]4256 [[package]]
4257 name = "wayland-sys"4257 name = "wayland-sys"
4258-version = "0.31.10"4258+version = "0.31.11"
4259 source = "registry+https://github.com/rust-lang/crates.io-index"4259 source = "registry+https://github.com/rust-lang/crates.io-index"
4260-checksum = "374f6b70e8e0d6bf9461a32988fd553b59ff630964924dad6e4a4eb6bd538d17"4260+checksum = "d8eab23fefc9e41f8e841df4a9c707e8a8c4ed26e944ef69297184de2785e3be"
4261 dependencies = [4261 dependencies = [
4262 "dlib",4262 "dlib",
4263 "libc",4263 "libc",
Cargo.tomlmodified+6 -6
@@ -31,14 +31,14 @@ tracy-client = { version = "0.18.4", default-features = false }
31 [workspace.dependencies.smithay]31 [workspace.dependencies.smithay]
32 # version = "0.4.1"32 # version = "0.4.1"
33 git = "https://github.com/Smithay/smithay.git"33 git = "https://github.com/Smithay/smithay.git"
34-rev = "dce4d34e7421559b661af9c519904f4b24346148"34+rev = "dba255cd18c1a808c85a1d1144ad48e0b3f44b8f"
35 # path = "../smithay"35 # path = "../smithay"
36 default-features = false36 default-features = false
37 37
38 [workspace.dependencies.smithay-drm-extras]38 [workspace.dependencies.smithay-drm-extras]
39 # version = "0.1.0"39 # version = "0.1.0"
40 git = "https://github.com/Smithay/smithay.git"40 git = "https://github.com/Smithay/smithay.git"
41-rev = "dce4d34e7421559b661af9c519904f4b24346148"41+rev = "dba255cd18c1a808c85a1d1144ad48e0b3f44b8f"
42 # path = "../smithay/smithay-drm-extras"42 # path = "../smithay/smithay-drm-extras"
43 43
44 [package]44 [package]
@@ -77,7 +77,7 @@ fastrand = "2.3.0"
77 futures-util = { version = "0.3.32", default-features = false, features = ["std", "io"] }77 futures-util = { version = "0.3.32", default-features = false, features = ["std", "io"] }
78 git-version = "0.3.9"78 git-version = "0.3.9"
79 glam = "0.32.1"79 glam = "0.32.1"
80-input = { version = "0.9.1", features = ["libinput_1_21"] }80+input = { version = "0.10.0", features = ["libinput_1_21"] }
81 keyframe = { version = "1.1.1", default-features = false }81 keyframe = { version = "1.1.1", default-features = false }
82 libc = "0.2.182"82 libc = "0.2.182"
83 libdisplay-info = "0.3.0"83 libdisplay-info = "0.3.0"
@@ -97,9 +97,9 @@ smithay-drm-extras.workspace = true
97 tracing-subscriber.workspace = true97 tracing-subscriber.workspace = true
98 tracing.workspace = true98 tracing.workspace = true
99 tracy-client.workspace = true99 tracy-client.workspace = true
100-wayland-backend = "0.3.14"100+wayland-backend = "0.3.15"
101-wayland-scanner = "0.31.9"101+wayland-scanner = "0.31.10"
102-wayland-server = { version = "0.31.12", features = ["libwayland_1_23"] }102+wayland-server = { version = "0.31.13", features = ["libwayland_1_23"] }
103 xcursor = "0.3.10"103 xcursor = "0.3.10"
104 zbus = { version = "5.13.2", optional = true }104 zbus = { version = "5.13.2", optional = true }
105 105
src/backend/tty.rsmodified+2 -2
@@ -1419,7 +1419,7 @@ impl Tty {
1419 1419
1420 // Create the compositor.1420 // Create the compositor.
1421 let res = DrmCompositor::new(1421 let res = DrmCompositor::new(
1422- OutputModeSource::Auto(output.clone()),1422+ OutputModeSource::Auto(output.downgrade()),
1423 surface,1423 surface,
1424 None,1424 None,
1425 device.allocator.clone(),1425 device.allocator.clone(),
@@ -1449,7 +1449,7 @@ impl Tty {
1449 .create_surface(crtc, mode, &[connector.handle()])?;1449 .create_surface(crtc, mode, &[connector.handle()])?;
1450 1450
1451 DrmCompositor::new(1451 DrmCompositor::new(
1452- OutputModeSource::Auto(output.clone()),1452+ OutputModeSource::Auto(output.downgrade()),
1453 surface,1453 surface,
1454 None,1454 None,
1455 device.allocator.clone(),1455 device.allocator.clone(),
src/handlers/compositor.rsmodified+3 -3
@@ -508,7 +508,7 @@ impl CompositorHandler for State {
508 // So, this may come out empty, and then the toplevel pre-commit hook will be removed in the508 // So, this may come out empty, and then the toplevel pre-commit hook will be removed in the
509 // subsequent toplevel_destroyed() call.509 // subsequent toplevel_destroyed() call.
510 if let Some(hook) = self.niri.dmabuf_pre_commit_hook.remove(surface) {510 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);
512 }512 }
513 }513 }
514 }514 }
@@ -572,13 +572,13 @@ impl State {
572 let s = surface.clone();572 let s = surface.clone();
573 if let Some(prev) = self.niri.dmabuf_pre_commit_hook.insert(s, hook) {573 if let Some(prev) = self.niri.dmabuf_pre_commit_hook.insert(s, hook) {
574 error!("tried to add dmabuf pre-commit hook when there was already one");574 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);
576 }576 }
577 }577 }
578 578
579 pub fn remove_default_dmabuf_pre_commit_hook(&mut self, surface: &WlSurface) {579 pub fn remove_default_dmabuf_pre_commit_hook(&mut self, surface: &WlSurface) {
580 if let Some(hook) = self.niri.dmabuf_pre_commit_hook.remove(surface) {580 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);
582 } else {582 } else {
583 error!("tried to remove dmabuf pre-commit hook but there was none");583 error!("tried to remove dmabuf pre-commit hook but there was none");
584 }584 }
src/input/mod.rsmodified+5 -1
@@ -4678,7 +4678,11 @@ pub fn apply_libinput_settings(config: &niri_config::Input, device: &mut input::
4678 let _ = device.config_tap_set_enabled(c.tap);4678 let _ = device.config_tap_set_enabled(c.tap);
4679 let _ = device.config_dwt_set_enabled(c.dwt);4679 let _ = device.config_dwt_set_enabled(c.dwt);
4680 let _ = device.config_dwtp_set_enabled(c.dwtp);4680 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+ });
4682 let _ = device.config_scroll_set_natural_scroll_enabled(c.natural_scroll);4686 let _ = device.config_scroll_set_natural_scroll_enabled(c.natural_scroll);
4683 let _ = device.config_accel_set_speed(c.accel_speed.0);4687 let _ = device.config_accel_set_speed(c.accel_speed.0);
4684 let _ = device.config_left_handed_set(c.left_handed);4688 let _ = device.config_left_handed_set(c.left_handed);
src/layer/mapped.rsmodified+1 -1
@@ -328,6 +328,6 @@ impl MappedLayer {
328 328
329 impl Drop for MappedLayer {329 impl Drop for MappedLayer {
330 fn drop(&mut self) {330 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);
332 }332 }
333 }333 }
src/window/mapped.rsmodified+1 -1
@@ -598,7 +598,7 @@ impl Mapped {
598 598
599 impl Drop for Mapped {599 impl Drop for Mapped {
600 fn drop(&mut self) {600 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);
602 }602 }
603 }603 }
604 604