Created attachment 157378 [details] observed result: the representation overflows SUMMARY (see title/attachment) STEPS TO REPRODUCE 1. Have two (or more) screens arranged side-by-side. 2. Have a virtual desktop pager applet in a panel on the left screen. 3. In the pager's config, enable the “current screen only” option. 4. Open a window on the left screen and slowly move it towards the right screen. OBSERVED RESULT Until the “center” of the window passes the screen border, its representation in the pager overflows, interfering with the applets to its right. EXPECTED RESULT The representation should be clamped as it is when not using the “current screen only” option. SOFTWARE/OS VERSIONS Manjaro 22.0.4 KDE Plasma Version: 5.26.5 KDE Frameworks Version: 5.103.0 Qt Version: 5.15.8 ADDITIONAL INFORMATION There is clamping logic present, but it doesn't seem to consider the possibility that “current screen only” is set. https://invent.kde.org/plasma/plasma-desktop/-/blob/master/applets/pager/plugin/windowmodel.cpp#L101
Forgot one STEP TO REPRODUCE: 3b. Open the rightmost virtual desktop.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/1442
Git commit cd8b899d458c3136fa1c83c6923b3c9dcd45903b by David Redondo. Committed on 24/03/2023 at 07:57. Pushed by davidre into branch 'master'. applets/pager: Clamp to screen size if only showing one screen Otherwise windows will spill into the gap/next VD. FIXED-IN:5.27.4 M +7 -6 applets/pager/plugin/windowmodel.cpp https://invent.kde.org/plasma/plasma-desktop/commit/cd8b899d458c3136fa1c83c6923b3c9dcd45903b