seat: Workaround old active outputs on hotplug
This commit is contained in:
parent
9c41c80345
commit
b2686424ea
9 changed files with 69 additions and 14 deletions
|
|
@ -81,10 +81,12 @@ impl State {
|
|||
}
|
||||
}
|
||||
|
||||
let seats = self.common.seats().cloned().collect::<Vec<_>>();
|
||||
if let Err(err) = self.backend.apply_config_for_output(
|
||||
output,
|
||||
test_only,
|
||||
&mut self.common.shell,
|
||||
seats.iter().cloned(),
|
||||
&self.common.event_loop_handle,
|
||||
) {
|
||||
slog_scope::warn!(
|
||||
|
|
@ -106,6 +108,7 @@ impl State {
|
|||
output,
|
||||
false,
|
||||
&mut self.common.shell,
|
||||
seats.iter().cloned(),
|
||||
&self.common.event_loop_handle,
|
||||
) {
|
||||
slog_scope::error!(
|
||||
|
|
|
|||
|
|
@ -1018,6 +1018,9 @@ impl State {
|
|||
if !session.alive() {
|
||||
return;
|
||||
}
|
||||
if !data.state.common.shell.outputs.contains(&output) {
|
||||
return;
|
||||
}
|
||||
match render_workspace_to_buffer(
|
||||
&mut data.state,
|
||||
&session,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue