Bug 456352

Summary: Inconsistency of properties displayed and used when reverting changes of scaling in KScreen
Product: [Applications] systemsettings Reporter: postix <postix>
Component: kcm_kscreenAssignee: kscreen-bugs-null <kscreen-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: me, meven29, meven, nate, plasma-bugs-null, xaver.hugl
Priority: NOR    
Version First Reported In: 5.25.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.27
Sentry Crash Report:
Attachments: kWin Support Info before step 1
Screenshot

Description postix 2022-07-05 12:03:16 UTC
Created attachment 150413 [details]
kWin Support Info before step 1

SUMMARY
I got two screens, with the initial resolution: 2k@100% (A) and 4k@200% (B)

STEPS TO REPRODUCE
1.  Change scaling of B to 100% and hit "apply" and select "keep"
2. Change scaling of B back to 200% and hit "apply" and select "revert"

OBSERVED RESULT
B keeps scaling of 100% but KScreen says it scales with 200%.

EXPECTED RESULT
B keeps scaling of 100% but KScreen says it scales with 100%.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20220703
KDE Plasma Version: 5.25.2
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.5
Kernel Version: 5.18.6-1-default (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon RX 580 Series
Comment 1 postix 2022-07-05 12:04:55 UTC
Created attachment 150414 [details]
Screenshot

Same steps but 100% <--> 200% interchanged leads to the same result. In the screenshot the window scales with 200% but KScreen reports a 100% scaling.
Comment 2 Nate Graham 2022-11-12 15:01:12 UTC
Seems like the model has gotten out of sync with the UI.
Comment 3 Méven 2022-12-01 11:36:48 UTC
Should be fixed with https://invent.kde.org/plasma/kscreen/-/merge_requests/74 in next Plasma.