Update Smithay
Browse files at this commit56cffa155b20eaeb5b3a5f3ad434493d700a43a6Parent: b54acf52 changed files +56 -51
- Cargo.lock +37 -37
- src/handlers/xdg_shell.rs +19 -14
Cargo.lockmodified+37 -37
| @@ -63,9 +63,9 @@ checksum = "fc7eb209b1518d6bb87b283c20095f5228ecda460da70b44f0802523dea6da04" | ||
| 63 | 63 | |
| 64 | 64 | [[package]] |
| 65 | 65 | name = "anstream" |
| 66 | -version = "0.5.0" | |
| 66 | +version = "0.6.4" | |
| 67 | 67 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 68 | -checksum = "b1f58811cfac344940f1a400b6e6231ce35171f614f26439e80f8c1465c5cc0c" | |
| 68 | +checksum = "2ab91ebe16eb252986481c5b62f6098f3b698a45e34b5b98200cf20dd2484a44" | |
| 69 | 69 | dependencies = [ |
| 70 | 70 | "anstyle", |
| 71 | 71 | "anstyle-parse", |
| @@ -77,15 +77,15 @@ dependencies = [ | ||
| 77 | 77 | |
| 78 | 78 | [[package]] |
| 79 | 79 | name = "anstyle" |
| 80 | -version = "1.0.3" | |
| 80 | +version = "1.0.4" | |
| 81 | 81 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 82 | -checksum = "b84bf0a05bbb2a83e5eb6fa36bb6e87baa08193c35ff52bbf6b38d8af2890e46" | |
| 82 | +checksum = "7079075b41f533b8c61d2a4d073c4676e1f8b249ff94a393b0595db304e0dd87" | |
| 83 | 83 | |
| 84 | 84 | [[package]] |
| 85 | 85 | name = "anstyle-parse" |
| 86 | -version = "0.2.1" | |
| 86 | +version = "0.2.2" | |
| 87 | 87 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 88 | -checksum = "938874ff5980b03a87c5524b3ae5b59cf99b1d6bc836848df7bc5ada9643c333" | |
| 88 | +checksum = "317b9a89c1868f5ea6ff1d9539a69f45dffc21ce321ac1fd1160dfa48c8e2140" | |
| 89 | 89 | dependencies = [ |
| 90 | 90 | "utf8parse", |
| 91 | 91 | ] |
| @@ -101,9 +101,9 @@ dependencies = [ | ||
| 101 | 101 | |
| 102 | 102 | [[package]] |
| 103 | 103 | name = "anstyle-wincon" |
| 104 | -version = "2.1.0" | |
| 104 | +version = "3.0.1" | |
| 105 | 105 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 106 | -checksum = "58f54d10c6dfa51283a066ceab3ec1ab78d13fae00aa49243a45e4571fb79dfd" | |
| 106 | +checksum = "f0699d10d2f4d628a98ee7b57b289abbc98ff3bad977cb3152709d4bf2330628" | |
| 107 | 107 | dependencies = [ |
| 108 | 108 | "anstyle", |
| 109 | 109 | "windows-sys 0.48.0", |
| @@ -153,9 +153,9 @@ dependencies = [ | ||
| 153 | 153 | |
| 154 | 154 | [[package]] |
| 155 | 155 | name = "async-executor" |
| 156 | -version = "1.5.3" | |
| 156 | +version = "1.5.4" | |
| 157 | 157 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 158 | -checksum = "78f2db9467baa66a700abce2a18c5ad793f6f83310aca1284796fc3921d113fd" | |
| 158 | +checksum = "2c1da3ae8dabd9c00f453a329dfe1fb28da3c0a72e2478cdcd93171740c20499" | |
| 159 | 159 | dependencies = [ |
| 160 | 160 | "async-lock", |
| 161 | 161 | "async-task", |
| @@ -191,7 +191,7 @@ dependencies = [ | ||
| 191 | 191 | "log", |
| 192 | 192 | "parking", |
| 193 | 193 | "polling 2.8.0", |
| 194 | - "rustix 0.37.23", | |
| 194 | + "rustix 0.37.24", | |
| 195 | 195 | "slab", |
| 196 | 196 | "socket2", |
| 197 | 197 | "waker-fn", |
| @@ -219,7 +219,7 @@ dependencies = [ | ||
| 219 | 219 | "cfg-if", |
| 220 | 220 | "event-listener 3.0.0", |
| 221 | 221 | "futures-lite", |
| 222 | - "rustix 0.38.14", | |
| 222 | + "rustix 0.38.15", | |
| 223 | 223 | "windows-sys 0.48.0", |
| 224 | 224 | ] |
| 225 | 225 | |
| @@ -236,9 +236,9 @@ dependencies = [ | ||
| 236 | 236 | |
| 237 | 237 | [[package]] |
| 238 | 238 | name = "async-signal" |
| 239 | -version = "0.2.1" | |
| 239 | +version = "0.2.2" | |
| 240 | 240 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 241 | -checksum = "4af361a844928cb7d36590d406709473a1b574f443094422ef166daa3b493208" | |
| 241 | +checksum = "c99f3cb3f9ff89f7d718fbb942c9eb91bedff12e396adf09a622dfe7ffec2bc2" | |
| 242 | 242 | dependencies = [ |
| 243 | 243 | "async-io", |
| 244 | 244 | "async-lock", |
| @@ -458,7 +458,7 @@ dependencies = [ | ||
| 458 | 458 | "bitflags 2.4.0", |
| 459 | 459 | "log", |
| 460 | 460 | "polling 3.1.0", |
| 461 | - "rustix 0.38.14", | |
| 461 | + "rustix 0.38.15", | |
| 462 | 462 | "slab", |
| 463 | 463 | "thiserror", |
| 464 | 464 | ] |
| @@ -536,9 +536,9 @@ dependencies = [ | ||
| 536 | 536 | |
| 537 | 537 | [[package]] |
| 538 | 538 | name = "clap" |
| 539 | -version = "4.4.5" | |
| 539 | +version = "4.4.6" | |
| 540 | 540 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 541 | -checksum = "824956d0dca8334758a5b7f7e50518d66ea319330cbceedcf76905c2f6ab30e3" | |
| 541 | +checksum = "d04704f56c2cde07f43e8e2c154b43f216dc5c92fc98ada720177362f953b956" | |
| 542 | 542 | dependencies = [ |
| 543 | 543 | "clap_builder", |
| 544 | 544 | "clap_derive", |
| @@ -546,9 +546,9 @@ dependencies = [ | ||
| 546 | 546 | |
| 547 | 547 | [[package]] |
| 548 | 548 | name = "clap_builder" |
| 549 | -version = "4.4.5" | |
| 549 | +version = "4.4.6" | |
| 550 | 550 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 551 | -checksum = "122ec64120a49b4563ccaedcbea7818d069ed8e9aa6d829b82d8a4128936b2ab" | |
| 551 | +checksum = "0e231faeaca65ebd1ea3c737966bf858971cd38c3849107aa3ea7de90a804e45" | |
| 552 | 552 | dependencies = [ |
| 553 | 553 | "anstream", |
| 554 | 554 | "anstyle", |
| @@ -1064,9 +1064,9 @@ dependencies = [ | ||
| 1064 | 1064 | |
| 1065 | 1065 | [[package]] |
| 1066 | 1066 | name = "hashbrown" |
| 1067 | -version = "0.14.0" | |
| 1067 | +version = "0.14.1" | |
| 1068 | 1068 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 1069 | -checksum = "2c6201b9ff9fd90a5a3bac2e56a830d0caa509576f0e503818ee82c181b3437a" | |
| 1069 | +checksum = "7dfda62a12f55daeae5015f81b0baea145391cb4520f86c248fc615d72640d12" | |
| 1070 | 1070 | |
| 1071 | 1071 | [[package]] |
| 1072 | 1072 | name = "heck" |
| @@ -1105,12 +1105,12 @@ dependencies = [ | ||
| 1105 | 1105 | |
| 1106 | 1106 | [[package]] |
| 1107 | 1107 | name = "indexmap" |
| 1108 | -version = "2.0.0" | |
| 1108 | +version = "2.0.2" | |
| 1109 | 1109 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 1110 | -checksum = "d5477fe2230a79769d8dc68e0eabf5437907c0457a5614a9e8dddb67f65eb65d" | |
| 1110 | +checksum = "8adf3ddd720272c6ea8bf59463c04e0f93d0bbf7c5439b691bca2987e0270897" | |
| 1111 | 1111 | dependencies = [ |
| 1112 | 1112 | "equivalent", |
| 1113 | - "hashbrown 0.14.0", | |
| 1113 | + "hashbrown 0.14.1", | |
| 1114 | 1114 | ] |
| 1115 | 1115 | |
| 1116 | 1116 | [[package]] |
| @@ -1171,7 +1171,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 1171 | 1171 | checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b" |
| 1172 | 1172 | dependencies = [ |
| 1173 | 1173 | "hermit-abi", |
| 1174 | - "rustix 0.38.14", | |
| 1174 | + "rustix 0.38.15", | |
| 1175 | 1175 | "windows-sys 0.48.0", |
| 1176 | 1176 | ] |
| 1177 | 1177 | |
| @@ -1923,7 +1923,7 @@ dependencies = [ | ||
| 1923 | 1923 | "cfg-if", |
| 1924 | 1924 | "concurrent-queue", |
| 1925 | 1925 | "pin-project-lite", |
| 1926 | - "rustix 0.38.14", | |
| 1926 | + "rustix 0.38.15", | |
| 1927 | 1927 | "tracing", |
| 1928 | 1928 | "windows-sys 0.48.0", |
| 1929 | 1929 | ] |
| @@ -2190,9 +2190,9 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" | ||
| 2190 | 2190 | |
| 2191 | 2191 | [[package]] |
| 2192 | 2192 | name = "rustix" |
| 2193 | -version = "0.37.23" | |
| 2193 | +version = "0.37.24" | |
| 2194 | 2194 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 2195 | -checksum = "4d69718bf81c6127a49dc64e44a742e8bb9213c0ff8869a22c308f84c1d4ab06" | |
| 2195 | +checksum = "4279d76516df406a8bd37e7dff53fd37d1a093f997a3c34a5c21658c126db06d" | |
| 2196 | 2196 | dependencies = [ |
| 2197 | 2197 | "bitflags 1.3.2", |
| 2198 | 2198 | "errno", |
| @@ -2204,9 +2204,9 @@ dependencies = [ | ||
| 2204 | 2204 | |
| 2205 | 2205 | [[package]] |
| 2206 | 2206 | name = "rustix" |
| 2207 | -version = "0.38.14" | |
| 2207 | +version = "0.38.15" | |
| 2208 | 2208 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 2209 | -checksum = "747c788e9ce8e92b12cd485c49ddf90723550b654b32508f979b71a7b1ecda4f" | |
| 2209 | +checksum = "d2f9da0cbd88f9f09e7814e388301c8414c51c62aa6ce1e4b5c551d49d96e531" | |
| 2210 | 2210 | dependencies = [ |
| 2211 | 2211 | "bitflags 2.4.0", |
| 2212 | 2212 | "errno", |
| @@ -2304,9 +2304,9 @@ dependencies = [ | ||
| 2304 | 2304 | |
| 2305 | 2305 | [[package]] |
| 2306 | 2306 | name = "sharded-slab" |
| 2307 | -version = "0.1.4" | |
| 2307 | +version = "0.1.6" | |
| 2308 | 2308 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 2309 | -checksum = "900fba806f70c630b0a382d0d825e17a0f19fcd059a2ade1ff237bcddf446b31" | |
| 2309 | +checksum = "c1b21f559e07218024e7e9f90f96f601825397de0e25420135f7f952453fed0b" | |
| 2310 | 2310 | dependencies = [ |
| 2311 | 2311 | "lazy_static", |
| 2312 | 2312 | ] |
| @@ -2365,7 +2365,7 @@ checksum = "b7c388c1b5e93756d0c740965c41e8822f866621d41acbdf6336a6a168f8840c" | ||
| 2365 | 2365 | [[package]] |
| 2366 | 2366 | name = "smithay" |
| 2367 | 2367 | version = "0.3.0" |
| 2368 | -source = "git+https://github.com/Smithay/smithay.git#509030a151ad440f8406229f32d674811efd9007" | |
| 2368 | +source = "git+https://github.com/Smithay/smithay.git#74ef59a3f8b6a1f86a74388590f2f852040354e4" | |
| 2369 | 2369 | dependencies = [ |
| 2370 | 2370 | "appendlist", |
| 2371 | 2371 | "bitflags 2.4.0", |
| @@ -2428,7 +2428,7 @@ dependencies = [ | ||
| 2428 | 2428 | [[package]] |
| 2429 | 2429 | name = "smithay-drm-extras" |
| 2430 | 2430 | version = "0.1.0" |
| 2431 | -source = "git+https://github.com/Smithay/smithay.git#509030a151ad440f8406229f32d674811efd9007" | |
| 2431 | +source = "git+https://github.com/Smithay/smithay.git#74ef59a3f8b6a1f86a74388590f2f852040354e4" | |
| 2432 | 2432 | dependencies = [ |
| 2433 | 2433 | "drm", |
| 2434 | 2434 | "edid-rs", |
| @@ -2534,7 +2534,7 @@ dependencies = [ | ||
| 2534 | 2534 | "cfg-if", |
| 2535 | 2535 | "fastrand 2.0.1", |
| 2536 | 2536 | "redox_syscall 0.3.5", |
| 2537 | - "rustix 0.38.14", | |
| 2537 | + "rustix 0.38.15", | |
| 2538 | 2538 | "windows-sys 0.48.0", |
| 2539 | 2539 | ] |
| 2540 | 2540 | |
| @@ -3257,9 +3257,9 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" | ||
| 3257 | 3257 | |
| 3258 | 3258 | [[package]] |
| 3259 | 3259 | name = "winit" |
| 3260 | -version = "0.28.6" | |
| 3260 | +version = "0.28.7" | |
| 3261 | 3261 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 3262 | -checksum = "866db3f712fffba75d31bf0cdecf357c8aeafd158c5b7ab51dba2a2b2d47f196" | |
| 3262 | +checksum = "9596d90b45384f5281384ab204224876e8e8bf7d58366d9b795ad99aa9894b94" | |
| 3263 | 3263 | dependencies = [ |
| 3264 | 3264 | "android-activity", |
| 3265 | 3265 | "bitflags 1.3.2", |
src/handlers/xdg_shell.rsmodified+19 -14
| @@ -241,20 +241,25 @@ impl State { | ||
| 241 | 241 | self.niri.popups.commit(surface); |
| 242 | 242 | |
| 243 | 243 | if let Some(popup) = self.niri.popups.find_popup(surface) { |
| 244 | - let PopupKind::Xdg(ref popup) = popup; | |
| 245 | - let initial_configure_sent = with_states(surface, |states| { | |
| 246 | - states | |
| 247 | - .data_map | |
| 248 | - .get::<XdgPopupSurfaceData>() | |
| 249 | - .unwrap() | |
| 250 | - .lock() | |
| 251 | - .unwrap() | |
| 252 | - .initial_configure_sent | |
| 253 | - }); | |
| 254 | - if !initial_configure_sent { | |
| 255 | - // NOTE: This should never fail as the initial configure is always | |
| 256 | - // allowed. | |
| 257 | - popup.send_configure().expect("initial configure failed"); | |
| 244 | + match popup { | |
| 245 | + PopupKind::Xdg(ref popup) => { | |
| 246 | + let initial_configure_sent = with_states(surface, |states| { | |
| 247 | + states | |
| 248 | + .data_map | |
| 249 | + .get::<XdgPopupSurfaceData>() | |
| 250 | + .unwrap() | |
| 251 | + .lock() | |
| 252 | + .unwrap() | |
| 253 | + .initial_configure_sent | |
| 254 | + }); | |
| 255 | + if !initial_configure_sent { | |
| 256 | + // NOTE: This should never fail as the initial configure is always | |
| 257 | + // allowed. | |
| 258 | + popup.send_configure().expect("initial configure failed"); | |
| 259 | + } | |
| 260 | + } | |
| 261 | + // Input method popups don't require a configure. | |
| 262 | + PopupKind::InputMethod(_) => (), | |
| 258 | 263 | } |
| 259 | 264 | } |
| 260 | 265 | } |