Created attachment 169239 [details] The UI glitch *** If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports *** SUMMARY The UI glitches (see screenshot) STEPS TO REPRODUCE 1. Maximize System Monitor app 2. Close System Monitor app 3. Open System Monitor app (it will now have remembered to be maximized) 4. Click and drag the top bar of the app such that it becomes un-maximized OBSERVED RESULT Sidebar is in the middle of the window, overlapping the content EXPECTED RESULT Sidebar remains at the side. SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: KDE Neon 22.04 with all updates installed as of 2024-05-06 (available in About System) KDE Plasma Version: 6.04 KDE Frameworks Version: 6.1.0 Qt Version: 6.7.0 Graphics platform x11 ADDITIONAL INFORMATION If the app is started non-maximized, the issue doesn't occur even if one maximizes and un-maximizes.
I'm just confirming that this still happens on Plasma 6.1.5. Also, I'm bumping this issue as I think it's quite a significant glitch that is not too unlikely to occur. On a smaller screen, it's worse, as much more of the system monitor window becomes glitchy.
As it turns out, this only reproduces for me when dragging to unmaximize (not when using the titlebar buttons) and only when using XCB, not when using Wayland. It seems something is ignoring size changes when dragging, which then causes Qt's layouting to break. I'm not sure if there's anything we can do about this is System Monitor, since neither the drag behaviour nor the layout is really under our control.
*** Bug 487226 has been marked as a duplicate of this bug. ***
Thanks for looking into this. Interesting that the bug doesn't appear on wayland. If this bug is difficult to fix and is automatically fixed once one switches to wayland, I'd be fine with closing this. But it's up to you of course :)
The issue seems to have been fixed in the meantime!