Bug 427065

Summary: Window position and screen rules are not correctly applied in multi-screen setup...
Product: [Plasma] kwin Reporter: rob <rohu>
Component: rulesAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: isma.af, nate
Priority: NOR    
Version First Reported In: 5.19.5   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description rob 2020-09-28 09:30:16 UTC
...if target screen scale does not correspond to the scale/resolution of the screen whos origin is equal to overall origin of multi-screen setup.

SUMMARY
Window position rules are not enforced correctly if scales (xrandr) differ between screens in a window

STEPS TO REPRODUCE
1. Generate window position and screen rules for application (e.g. dolphin, 500x500, screen 0).
2. Set the position and screen rules to FORCE.

OBSERVED RESULT
Window is positioned correctly at 500x500 upper left corner in single screen setup or in a multi-screen setup if the screens have same scale/resolution.
Window is position incorrectly at a relative position probably determined from that screens scale who's origin corresponds to overall setup origin.

EXPECTED RESULT
Window position should be determined considering scale differences between single screens in a multi-screen setup.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: ArchLinux
(available in About System)
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1
Xorg-server: 1.20.9-2
Comment 1 David Edmundson 2023-09-06 10:38:14 UTC
This bug was reported against an outdated version of KWin. We have made many changes since the. 
If the issue persists in newer versions can you reopen the bug report updating the version number.