koiuo / randrctl

Profile based screen manager for X
GNU General Public License v3.0
47 stars 12 forks source link

Fix for incorrect scale with a rotated screen #5

Closed op8867555 closed 7 years ago

op8867555 commented 7 years ago

Hi

When I dumping a profile with an external screen rotated (xrandr --output HDMI1 --mode 1920x1080 --rotate right --right-of eDP1)

randrctl dump gives me:

    "outputs": {
        "HDMI1": {
            "mode": "1920x1080",
            "panning": "0x0",
            "pos": "1920x0",
            "rate": 60,
            "rotate": "right",
            "scale": "0.5625x1.7777777777777777"
        }
        ...

scale should be "1x1" otherwise resulting a weird behavior

HDMI1 connected 608x3414+1920+0 right (normal left inverted right x axis y axis) 480mm x 270mm

This commit should fixes this issue.

koiuo commented 7 years ago

Good catch! Thank you for contribution.