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()
|
.cloned()
|
||||||
{
|
{
|
||||||
let surface = device.surfaces.remove(&crtc).unwrap();
|
let surface = device.surfaces.remove(&crtc).unwrap();
|
||||||
// TODO: move up later outputs?
|
if surface.output.mirroring().is_none() {
|
||||||
w -= surface
|
// TODO: move up later outputs?
|
||||||
.output
|
w = w.saturating_sub(surface.output.config().transformed_size().w as u32);
|
||||||
.current_mode()
|
}
|
||||||
.map(|m| m.size.w as u32)
|
|
||||||
.unwrap_or(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if !changes.added.iter().any(|(c, _)| c == &conn) {
|
if !changes.added.iter().any(|(c, _)| c == &conn) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue