devicescale: Ignore the base scale

The window might be too bit when the base scale is 2.

Updates #1307
Updates #1350
This commit is contained in:
Hajime Hoshi 2020-09-18 03:48:39 +09:00
parent 5f3d6dbc19
commit 632b985448

View File

@ -119,8 +119,9 @@ func cinnamonScaleFromXML() (float64, error) {
}
for _, v := range c.Output {
// TODO: Get the monitor at the specified position.
// TODO: Consider the base scale?
if v.Primary && v.Scale != 0.0 {
return c.BaseScale * v.Scale, nil
return v.Scale, nil
}
}
}