Move dynamic_target set outside pw_utils
Browse files at this commit2d16abdaae05c50b04c8b3bb399f9635dfcf1d42Parent: ff081ac2 changed files +3 -4
src/screencasting/mod.rsmodified+2 -2
| @@ -341,7 +341,6 @@ impl State { | ||
| 341 | 341 | session_id, |
| 342 | 342 | stream_id, |
| 343 | 343 | target, |
| 344 | - dynamic_target, | |
| 345 | 344 | size, |
| 346 | 345 | refresh, |
| 347 | 346 | alpha, |
| @@ -349,7 +348,8 @@ impl State { | ||
| 349 | 348 | signal_ctx, |
| 350 | 349 | ); |
| 351 | 350 | match res { |
| 352 | - Ok(cast) => { | |
| 351 | + Ok(mut cast) => { | |
| 352 | + cast.dynamic_target = dynamic_target; | |
| 353 | 353 | self.niri.casting.casts.push(cast); |
| 354 | 354 | } |
| 355 | 355 | Err(err) => { |
src/screencasting/pw_utils.rsmodified+1 -2
| @@ -272,7 +272,6 @@ impl PipeWire { | ||
| 272 | 272 | session_id: usize, |
| 273 | 273 | stream_id: usize, |
| 274 | 274 | target: CastTarget, |
| 275 | - dynamic_target: bool, | |
| 276 | 275 | size: Size<i32, Physical>, |
| 277 | 276 | refresh: u32, |
| 278 | 277 | alpha: bool, |
| @@ -811,7 +810,7 @@ impl PipeWire { | ||
| 811 | 810 | stream, |
| 812 | 811 | _listener: listener, |
| 813 | 812 | target, |
| 814 | - dynamic_target, | |
| 813 | + dynamic_target: false, | |
| 815 | 814 | formats, |
| 816 | 815 | offer_alpha: alpha, |
| 817 | 816 | cursor_mode, |