I have "Navigation Wraps Around" disabled for my virtual desktops - of which I have two - however if I mouse wheel on the desktop it will cycle through #1 then #2 then back to #1 then #2 then back to #1 ad infinitum. As the cycling is usually because of an extremely sensitive mouse wheel it's actually quite difficult to get back to #1 so it stopping after #2 would be great, which is what I would expect to happen with "Wrap Around" turned off.
STEPS TO REPRODUCE
1. System Settings - Workspace Behaviour - Virtual Desktops
2. Options - Navigation Wraps around, unchecked
3. Roll your mouse wheel on a blank area of desktop.
It will loop through all your virtual desktops until you/the wheel stops.
To stop when reaching either the highest or lowest numbered desktop, depending on scroll direction.
(available in About System)
KDE Plasma Version: 5.19.4
KDE Frameworks Version: 5.73.0
Qt Version: 5.15.0
I see from some other bug reports this issue may of existed back in Plasma 4, also comments about KWin respecting the option but Plasma does not and bugs should be reported about plasmashell for this issue. I wasn't sure if this was a System Settings issue or Plasma but given the other comments about KWin working, I went with Plasma, so sorry if i categorized this incorrectly.
Here's a link to a video with me demonstrating the issue:
The pager has its own "Navigation wraps around" setting. The one in the KCM applies to global keyboard shortcuts, not the pager.
Ok well I didn't know that. I just added a Pager widget, looked a the settings and "Navigation Wraps Around" was _unchecked_ there also. I checked it, applied, unchecked, applied and same thing - it wraps around when the option is unchecked so I don't believe this bug is "resolved" unless there's another spot I'm supposed to look at...
Ah my mistake, I thought you were using the pager since this bug report was filed against the pager, and I didn't read closely enough. I can confirm the bug now.
Thanks Nate. As I mentioned it's one of those areas where it could be categorized under a few different things, not always obvious where best to file these things. Glad you were able to reproduce it though :-)
It looks like the switchdesktops containment action does not read this setting (rollOverDesktops) at all and just always wraps. :/
Working on this.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/710
Git commit 554a4f9c48af90c1cf59bd5872b87b230b1c5e71 by Nate Graham.
Committed on 15/03/2021 at 18:33.
Pushed by ngraham into branch 'master'.
Make virtual desktop scroll action respect wrap setting
The KWin setting for whether or not to wrap around was not respected, so
wrap was always true even if the user has turned it off. This commit
M +10 -2 containmentactions/switchdesktop/desktop.cpp
M +62 -0 libtaskmanager/virtualdesktopinfo.cpp
M +9 -0 libtaskmanager/virtualdesktopinfo.h