Move dynamic_target set outside pw_utils

This commit is contained in:
Ivan Molodetskikh
2026-01-12 07:46:21 +03:00
parent ff081acddc
commit 2d16abdaae
2 changed files with 3 additions and 4 deletions
+2 -2
View File
@@ -341,7 +341,6 @@ impl State {
session_id,
stream_id,
target,
dynamic_target,
size,
refresh,
alpha,
@@ -349,7 +348,8 @@ impl State {
signal_ctx,
);
match res {
Ok(cast) => {
Ok(mut cast) => {
cast.dynamic_target = dynamic_target;
self.niri.casting.casts.push(cast);
}
Err(err) => {
+1 -2
View File
@@ -272,7 +272,6 @@ impl PipeWire {
session_id: usize,
stream_id: usize,
target: CastTarget,
dynamic_target: bool,
size: Size<i32, Physical>,
refresh: u32,
alpha: bool,
@@ -811,7 +810,7 @@ impl PipeWire {
stream,
_listener: listener,
target,
dynamic_target,
dynamic_target: false,
formats,
offer_alpha: alpha,
cursor_mode,