Bug 462984

Summary: [Wayland] Disabling Laptop monitor breaks icon and window button scaling on external monitor
Product: [Plasma] kwin Reporter: Leonard Lausen <leonard>
Component: decorationsAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 5.26.4   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot with both displays
Screenshot of buggy scaling

Description Leonard Lausen 2022-12-13 03:03:23 UTC
Created attachment 154550 [details]
Screenshot with both displays

SUMMARY
With a FullHD Laptop display and 2K external display, disabling the laptop display (closing the laptop lid) breaks icon and window button scaling on the remaining display. It doesn't matter if the laptop display or external display is configured as primary.

STEPS TO REPRODUCE
1. Obtain laptop with FullHD screen and 2K external monitor.
2. Start a Wayland session with both displays.
3. Close laptop lid

OBSERVED RESULT
Window icon (upper left corner of the window) as well as the window minimize, maximize and close buttons scale breaks and their size doubles.

EXPECTED RESULT
Window icon and button scale is not affected by disabling the laptop display

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux 6.1
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.100
Qt Version: 5.15.6

ADDITIONAL INFORMATION
See screenshots attached
Comment 1 Leonard Lausen 2022-12-13 03:03:47 UTC
Created attachment 154551 [details]
Screenshot of buggy scaling
Comment 2 Leonard Lausen 2022-12-13 03:05:28 UTC
Printenv shows PLASMA_USE_QT_SCALING=1. Maybe that's the default for Wayland?