Bug 428514

Summary: When using Qt scaling on X11 with mixed-DPI screens, weird window maximize behavior
Product: [Plasma] plasmashell Reporter: alexmateescu
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: katyaberezyaka, nate, plasma-bugs, postix
Priority: NOR    
Version: 5.20.2   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Bug Depends on:    
Bug Blocks: 356446    
Attachments: Wrong maximize on primary screen
Wrong maximize on secondary screen

Description alexmateescu 2020-10-31 15:35:18 UTC
Created attachment 132917 [details]
Wrong maximize on primary screen

SUMMARY
Maximize does not work correctly when PLASMA_USE_QT_SCALING=1

STEPS TO REPRODUCE
1. Set PLASMA_USE_QT_SCALING=1
2. Reboot
3. Start maximizing windows

OBSERVED RESULT
On the primary monitor, the window does not occupy the whole screen. On the secondary monitor, the window grows bigger than the screen, extending to the primary.

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.20.2
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1
Kernel Version: 5.9.2-arch1-1
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-6600K CPU @ 3.50GHz
Memory: 31.3 GiB of RAM
Graphics Processor: GeForce GTX 1060 6GB/PCIe/SSE2

ADDITIONAL INFORMATION
My primary monitor is 4k, secondary is 1920x1200. Using 125% scaling.
Comment 1 alexmateescu 2020-10-31 15:35:51 UTC
Created attachment 132918 [details]
Wrong maximize on secondary screen
Comment 2 Nate Graham 2021-03-19 23:49:38 UTC
> My primary monitor is 4k, secondary is 1920x1200. Using 125% scaling.
This is an unsupported configuration on X11, which is known to become even worse and sprout bizarre visual problems like the one you're experiencing when you enable PLASMA_USE_QT_SCALING=1. That's one of the reasons why we haven't enabled it by default, in fact.

You should try the Plasma Wayland session, which handles this setup out of the box. It's really quite stable and usable in Plasma 5.21, and getting better all the time. I'm using it right now, and I'm picky about broken systems. :)