SUMMARY After https://invent.kde.org/plasma/plasma-desktop/-/commit/ed0214057e7ae78bedc4486a6344db9459ce5570 , the adaptive transparency feature is completely broken when using Qt scaling and fractional scaling. STEPS TO REPRODUCE 1. Enable adaptive transparency 2. Maximize/Cancel maximize a window 3. Watch the panel OBSERVED RESULT The vertical panel is always translucent, and the horizontal panel is always opaque. EXPECTED RESULT Adaptive! SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: 5.26.80 KDE Frameworks Version: 5.100 Qt Version: 5.15.6 ADDITIONAL INFORMATION
Horizontal panel: https://invent.kde.org/plasma/plasma-desktop/uploads/035a0394103dde62cd26d7476fae2734/image.png Vertical panel: https://invent.kde.org/plasma/plasma-desktop/uploads/221504203509a52744e1126cfeb8929b/%E5%9B%BE%E7%89%87.png
Can reproduce on X11. Also, a floating panel no longer de-floats when touched by a window or when there are any maximized windows. Probably the calculation is mixing logical and physical coordinates in a way that works on X11 without Qt scaling, and with Wayland with Qt scaling (where *everything* is scaled), but not X11 with Qt scaling (where some things are scaled and some things are not). Niccolò, can you investigate? Thanks!
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2373
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/1308
Git commit cba16a7a9d1ab3a7e159afe008f56b35f99cc8b8 by Nate Graham, on behalf of Fushan Wen. Committed on 23/12/2022 at 21:34. Pushed by ngraham into branch 'master'. desktoppackage: fix adaptive panel on X11 when Qt scaling is enabled Geometry from TasksModel on X11 does not take devicePixelRatio into account unlike panel geometry. FIXED-IN: 5.27 M +6 -4 desktoppackage/contents/views/Panel.qml https://invent.kde.org/plasma/plasma-desktop/commit/cba16a7a9d1ab3a7e159afe008f56b35f99cc8b8