Bug 445175

Summary: With 95% scale, maximized screen does not use the full screen, kscreen kept the right screen 1px over the left one
Product: [Plasma] KScreen Reporter: Luiz Angelo De Luca <luizluca>
Component: commonAssignee: kscreen-bugs-null <kscreen-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 5.23.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot
kscreen-console bug

Description Luiz Angelo De Luca 2021-11-08 18:57:17 UTC
Created attachment 143347 [details]
screenshot

SUMMARY

I have two monitor, one is rotated and scaled down (95%). When I maximize an app on that screen, it is using the bottom limit from the right monitor. I'll attach a screenshot. I'm using wayland.

Zooming in the border, I could see that the right painel is about 1px over the left screen.
The panel was expanded using the painel config ("maximize the painel")

My kscreen conf:

[
    {
        "enabled": true,
        "id": "eeee47da3181b6cbbae6d1472241e6f8",
        "metadata": {
            "fullname": "xrandr-Hewlett Packard-HP L190hb-BRG11407Q8",
            "name": "Hewlett Packard HP L190hb/BRG11407Q8"
        },
        "mode": {
            "refresh": 59.887001037597656,
            "size": {
                "height": 900,
                "width": 1440
            }
        },
        "overscan": 50,
        "pos": {
            "x": 0,
            "y": 0
        },
        "primary": false,
        "rgbrange": 0,
        "rotation": 2,
        "scale": 0.9492,
        "vrrpolicy": 0
    },
    {
        "enabled": true,
        "id": "9c25045418948794054c3d2d64ad8519",
        "metadata": {
            "fullname": "xrandr-2470W-E8562IA000190",
            "name": "AOC 2470W/E8562IA00019"
        },
        "mode": {
            "refresh": 60,
            "size": {
                "height": 1080,
                "width": 1920
            }
        },
        "overscan": 0,
        "pos": {
            "x": 947,
            "y": 218
        },
        "primary": true,
        "rgbrange": 0,
        "rotation": 1,
        "scale": 1,
        "vrrpolicy": 0
    }
]

It might be a rounding error (because of the scale)

Linux/KDE Plasma: Linux OpenSUSE Tumbleweed 20211106.
Comment 1 Luiz Angelo De Luca 2021-11-08 19:03:17 UTC
Created attachment 143348 [details]
kscreen-console bug
Comment 2 Nate Graham 2022-11-08 22:38:59 UTC
Very likely a scale-based rounding error.

Does the issue persist on Wayland, or does it work properly there? Also are you able to try with Plasma 5.25 or 5.26?
Comment 3 Luiz Angelo De Luca 2022-11-10 00:25:29 UTC
It works as expected with 5.26
Comment 4 Luiz Angelo De Luca 2022-11-10 00:25:45 UTC
It works as expected with 5.26