Skip to content

Commit

Permalink
Call data_init.init even if weak references are not alive
Browse files Browse the repository at this point in the history
  • Loading branch information
ids1024 authored and Drakulix committed Dec 11, 2024
1 parent 16a1214 commit 0d0b89d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/wayland/protocols/output_configuration/handlers/cosmic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,13 @@ where
output_conf.lock().unwrap().mirroring = Some(output.clone());
let conf_head = data_init.init(id, output_conf);
pending.heads.push((head, Some(conf_head)));
} else {
let output_conf = PendingOutputConfiguration::default();
data_init.init(id, output_conf);
}
} else {
let output_conf = PendingOutputConfiguration::default();
data_init.init(id, output_conf);
}
}
zcosmic_output_configuration_v1::Request::Release => {
Expand Down

0 comments on commit 0d0b89d

Please sign in to comment.