Invert is_decorated test in min_size/max_size
It looks like these if conditions assumed `true` mean "has SSDs". But it actually means the surface is client-side decorated.
This commit is contained in:
parent
1ed9649891
commit
0c54511477
1 changed files with 4 additions and 4 deletions
|
|
@ -415,9 +415,9 @@ impl CosmicSurface {
|
||||||
}
|
}
|
||||||
.map(|size| {
|
.map(|size| {
|
||||||
if self.is_decorated(false) {
|
if self.is_decorated(false) {
|
||||||
size + (0, SSD_HEIGHT).into()
|
|
||||||
} else {
|
|
||||||
size
|
size
|
||||||
|
} else {
|
||||||
|
size + (0, SSD_HEIGHT).into()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -434,9 +434,9 @@ impl CosmicSurface {
|
||||||
}
|
}
|
||||||
.map(|size| {
|
.map(|size| {
|
||||||
if self.is_decorated(false) {
|
if self.is_decorated(false) {
|
||||||
size + (0, SSD_HEIGHT).into()
|
|
||||||
} else {
|
|
||||||
size
|
size
|
||||||
|
} else {
|
||||||
|
size + (0, SSD_HEIGHT).into()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue