output-management: Don't advertise wl_output for mirrored outptus
This commit is contained in:
parent
5f4377bf59
commit
1048d99c05
1 changed files with 19 additions and 2 deletions
|
|
@ -137,14 +137,31 @@ impl State {
|
||||||
|
|
||||||
for output in conf
|
for output in conf
|
||||||
.iter()
|
.iter()
|
||||||
.filter(|(_, c)| matches!(c, OutputConfiguration::Enabled { .. }))
|
.filter(|(_, c)| {
|
||||||
|
matches!(
|
||||||
|
c,
|
||||||
|
OutputConfiguration::Enabled {
|
||||||
|
mirroring: None,
|
||||||
|
..
|
||||||
|
}
|
||||||
|
)
|
||||||
|
})
|
||||||
.map(|(o, _)| o)
|
.map(|(o, _)| o)
|
||||||
{
|
{
|
||||||
self.common.output_configuration_state.enable_head(output);
|
self.common.output_configuration_state.enable_head(output);
|
||||||
}
|
}
|
||||||
for output in conf
|
for output in conf
|
||||||
.iter()
|
.iter()
|
||||||
.filter(|(_, c)| matches!(c, OutputConfiguration::Disabled))
|
.filter(|(_, c)| {
|
||||||
|
matches!(
|
||||||
|
c,
|
||||||
|
OutputConfiguration::Disabled
|
||||||
|
| OutputConfiguration::Enabled {
|
||||||
|
mirroring: Some(_),
|
||||||
|
..
|
||||||
|
}
|
||||||
|
)
|
||||||
|
})
|
||||||
.map(|(o, _)| o)
|
.map(|(o, _)| o)
|
||||||
{
|
{
|
||||||
self.common.output_configuration_state.disable_head(output);
|
self.common.output_configuration_state.disable_head(output);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue