marten updated this revision to Diff 66138. marten added a comment.
Ignore the desktop ID and simply use the loop index, adjusted so that the desktop numbers start at 1. This is the same formatting as used by KWin (kwin/useractions.cpp) and the Task Manager applet (plasma-desktop/applets/taskmanager/package/contents/ui/ContextMenu.qml). This should work as intended on both X11 and Wayland. REPOSITORY R120 Plasma Workspace CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D22740?vs=62545&id=66138 REVISION DETAIL https://phabricator.kde.org/D22740 AFFECTED FILES containmentactions/switchwindow/switch.cpp To: marten, #plasma Cc: GB_2, ngraham, cfeck, plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart