kms: Don't substract for mirrored outputs
This commit is contained in:
parent
ea27ec5e28
commit
5207453157
1 changed files with 4 additions and 6 deletions
|
|
@ -305,12 +305,10 @@ impl State {
|
|||
.cloned()
|
||||
{
|
||||
let surface = device.surfaces.remove(&crtc).unwrap();
|
||||
// TODO: move up later outputs?
|
||||
w -= surface
|
||||
.output
|
||||
.current_mode()
|
||||
.map(|m| m.size.w as u32)
|
||||
.unwrap_or(0);
|
||||
if surface.output.mirroring().is_none() {
|
||||
// TODO: move up later outputs?
|
||||
w = w.saturating_sub(surface.output.config().transformed_size().w as u32);
|
||||
}
|
||||
}
|
||||
|
||||
if !changes.added.iter().any(|(c, _)| c == &conn) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue