Update Smithay (frame callback fix, late-bound enter fix, unrelated unlock fix)
Browse files at this commit92a25a0a8619f55596e5c138ea6d6a391e24e9dbParent: fec411e3 changed files +53 -10
- Cargo.lock +46 -8
- Cargo.toml +2 -2
- src/niri.rs +5 -0
Cargo.lockmodified+46 -8
| @@ -613,6 +613,17 @@ version = "0.2.2" | ||
| 613 | 613 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 614 | 614 | checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527" |
| 615 | 615 | |
| 616 | +[[package]] | |
| 617 | +name = "chacha20" | |
| 618 | +version = "0.10.1" | |
| 619 | +source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 620 | +checksum = "d524456ba66e72eb8b115ff89e01e497f8e6d11d78b70b1aa13c0fbd97540a81" | |
| 621 | +dependencies = [ | |
| 622 | + "cfg-if", | |
| 623 | + "cpufeatures 0.3.0", | |
| 624 | + "rand_core 0.10.1", | |
| 625 | +] | |
| 626 | + | |
| 616 | 627 | [[package]] |
| 617 | 628 | name = "chumsky" |
| 618 | 629 | version = "0.9.3" |
| @@ -743,6 +754,15 @@ dependencies = [ | ||
| 743 | 754 | "libc", |
| 744 | 755 | ] |
| 745 | 756 | |
| 757 | +[[package]] | |
| 758 | +name = "cpufeatures" | |
| 759 | +version = "0.3.0" | |
| 760 | +source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 761 | +checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201" | |
| 762 | +dependencies = [ | |
| 763 | + "libc", | |
| 764 | +] | |
| 765 | + | |
| 746 | 766 | [[package]] |
| 747 | 767 | name = "crc32fast" |
| 748 | 768 | version = "1.5.0" |
| @@ -1272,6 +1292,7 @@ dependencies = [ | ||
| 1272 | 1292 | "cfg-if", |
| 1273 | 1293 | "libc", |
| 1274 | 1294 | "r-efi 6.0.0", |
| 1295 | + "rand_core 0.10.1", | |
| 1275 | 1296 | ] |
| 1276 | 1297 | |
| 1277 | 1298 | [[package]] |
| @@ -2737,7 +2758,7 @@ dependencies = [ | ||
| 2737 | 2758 | "bit-vec", |
| 2738 | 2759 | "bitflags", |
| 2739 | 2760 | "num-traits", |
| 2740 | - "rand", | |
| 2761 | + "rand 0.9.5", | |
| 2741 | 2762 | "rand_chacha", |
| 2742 | 2763 | "rand_xorshift", |
| 2743 | 2764 | "regex-syntax", |
| @@ -2800,7 +2821,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 2800 | 2821 | checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41" |
| 2801 | 2822 | dependencies = [ |
| 2802 | 2823 | "rand_chacha", |
| 2803 | - "rand_core", | |
| 2824 | + "rand_core 0.9.5", | |
| 2825 | +] | |
| 2826 | + | |
| 2827 | +[[package]] | |
| 2828 | +name = "rand" | |
| 2829 | +version = "0.10.2" | |
| 2830 | +source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 2831 | +checksum = "c7f5fa3a058cd35567ef9bfa5e75732bee0f9e4c55fa90477bef2dfcdbc4be80" | |
| 2832 | +dependencies = [ | |
| 2833 | + "chacha20", | |
| 2834 | + "getrandom 0.4.3", | |
| 2835 | + "rand_core 0.10.1", | |
| 2804 | 2836 | ] |
| 2805 | 2837 | |
| 2806 | 2838 | [[package]] |
| @@ -2810,7 +2842,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 2810 | 2842 | checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" |
| 2811 | 2843 | dependencies = [ |
| 2812 | 2844 | "ppv-lite86", |
| 2813 | - "rand_core", | |
| 2845 | + "rand_core 0.9.5", | |
| 2814 | 2846 | ] |
| 2815 | 2847 | |
| 2816 | 2848 | [[package]] |
| @@ -2822,13 +2854,19 @@ dependencies = [ | ||
| 2822 | 2854 | "getrandom 0.3.4", |
| 2823 | 2855 | ] |
| 2824 | 2856 | |
| 2857 | +[[package]] | |
| 2858 | +name = "rand_core" | |
| 2859 | +version = "0.10.1" | |
| 2860 | +source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 2861 | +checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" | |
| 2862 | + | |
| 2825 | 2863 | [[package]] |
| 2826 | 2864 | name = "rand_xorshift" |
| 2827 | 2865 | version = "0.4.0" |
| 2828 | 2866 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 2829 | 2867 | checksum = "513962919efc330f829edb2535844d1b912b0fbe2ca165d613e4e8788bb05a5a" |
| 2830 | 2868 | dependencies = [ |
| 2831 | - "rand_core", | |
| 2869 | + "rand_core 0.9.5", | |
| 2832 | 2870 | ] |
| 2833 | 2871 | |
| 2834 | 2872 | [[package]] |
| @@ -3142,7 +3180,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 3142 | 3180 | checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" |
| 3143 | 3181 | dependencies = [ |
| 3144 | 3182 | "cfg-if", |
| 3145 | - "cpufeatures", | |
| 3183 | + "cpufeatures 0.2.17", | |
| 3146 | 3184 | "digest", |
| 3147 | 3185 | ] |
| 3148 | 3186 | |
| @@ -3232,7 +3270,7 @@ checksum = "e8e2fb0f499abb4d162f2bedad68f5ef91a1682b5a03596ddb67efd37768d100" | ||
| 3232 | 3270 | [[package]] |
| 3233 | 3271 | name = "smithay" |
| 3234 | 3272 | version = "0.7.0" |
| 3235 | -source = "git+https://github.com/Smithay/smithay.git?rev=7609ab82f002436188ebd4df1d8f7e1905f90c4a#7609ab82f002436188ebd4df1d8f7e1905f90c4a" | |
| 3273 | +source = "git+https://github.com/Smithay/smithay.git?rev=4cf0b62028039661477d482ec4758b687d8f4392#4cf0b62028039661477d482ec4758b687d8f4392" | |
| 3236 | 3274 | dependencies = [ |
| 3237 | 3275 | "aliasable", |
| 3238 | 3276 | "appendlist", |
| @@ -3258,7 +3296,7 @@ dependencies = [ | ||
| 3258 | 3296 | "pkg-config", |
| 3259 | 3297 | "portable-atomic", |
| 3260 | 3298 | "profiling", |
| 3261 | - "rand", | |
| 3299 | + "rand 0.10.2", | |
| 3262 | 3300 | "reis", |
| 3263 | 3301 | "rustix 1.1.4", |
| 3264 | 3302 | "sha2", |
| @@ -3311,7 +3349,7 @@ dependencies = [ | ||
| 3311 | 3349 | [[package]] |
| 3312 | 3350 | name = "smithay-drm-extras" |
| 3313 | 3351 | version = "0.1.0" |
| 3314 | -source = "git+https://github.com/Smithay/smithay.git?rev=7609ab82f002436188ebd4df1d8f7e1905f90c4a#7609ab82f002436188ebd4df1d8f7e1905f90c4a" | |
| 3352 | +source = "git+https://github.com/Smithay/smithay.git?rev=4cf0b62028039661477d482ec4758b687d8f4392#4cf0b62028039661477d482ec4758b687d8f4392" | |
| 3315 | 3353 | dependencies = [ |
| 3316 | 3354 | "drm", |
| 3317 | 3355 | "libdisplay-info", |
Cargo.tomlmodified+2 -2
| @@ -28,13 +28,13 @@ tracy-client = { version = "0.18.4", default-features = false } | ||
| 28 | 28 | [workspace.dependencies.smithay] |
| 29 | 29 | # version = "0.4.1" |
| 30 | 30 | git = "https://github.com/Smithay/smithay.git" |
| 31 | -rev = "7609ab82f002436188ebd4df1d8f7e1905f90c4a" | |
| 31 | +rev = "4cf0b62028039661477d482ec4758b687d8f4392" | |
| 32 | 32 | default-features = false |
| 33 | 33 | |
| 34 | 34 | [workspace.dependencies.smithay-drm-extras] |
| 35 | 35 | # version = "0.1.0" |
| 36 | 36 | git = "https://github.com/Smithay/smithay.git" |
| 37 | -rev = "7609ab82f002436188ebd4df1d8f7e1905f90c4a" | |
| 37 | +rev = "4cf0b62028039661477d482ec4758b687d8f4392" | |
| 38 | 38 | # path = "../smithay/smithay-drm-extras" |
| 39 | 39 | |
| 40 | 40 | [package] |
src/niri.rsmodified+5 -0
| @@ -6086,6 +6086,11 @@ impl Niri { | ||
| 6086 | 6086 | return; |
| 6087 | 6087 | } |
| 6088 | 6088 | |
| 6089 | + if lock != surface.ext_session_lock() { | |
| 6090 | + debug!("ignoring lock surface from an unrelated lock instance"); | |
| 6091 | + return; | |
| 6092 | + } | |
| 6093 | + | |
| 6089 | 6094 | let Some(output_state) = self.output_state.get_mut(output) else { |
| 6090 | 6095 | error!("missing output state"); |
| 6091 | 6096 | return; |