https://bugs.kde.org/show_bug.cgi?id=416707

            Bug ID: 416707
           Summary: Virtual desktop wrap-around doesn't work for qdbus
                    org.kde.KWin /KWin org.kde.KWin.nextDesktop
           Product: kwin
           Version: 5.17.5
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: input
          Assignee: kwin-bugs-n...@kde.org
          Reporter: raitarohik...@protonmail.com
  Target Milestone: ---

SUMMARY
There are shortcuts to switch to the next/prev virtual desktop. Those are:
    qdbus org.kde.KWin /KWin org.kde.KWin.nextDesktop
    qdbus org.kde.KWin /KWin org.kde.KWin.previousDesktop
The problem is that running these in a terminal or calling them from sxhkd for
example does not allow wrapping around of desktops, say 1-2-3-4-1 doesn't work
and I am stuck at 1.

STEPS TO REPRODUCE
1. go to the last desktop
2. in a terminal run `qdbus org.kde.KWin /KWin org.kde.KWin.nextDesktop`
3. make sure the setting to wrap around desktops is enabled (in the Virtual
Desktops settings)
4. nothing happens when command is entered. Going to desktop 1 doesn't work,
going back to previous does work, unless is run on first desktop in which case
it won't wrap to last.

OBSERVED RESULT
Virtual desktop wrapping doesn't work if the above qdbus commands are used. On
the other hand if the shortcuts from Global Shortcuts > Kwin are used then
everything is totally fine and works as expected.
On that note, invoking the shortcut with qdbus like this instead, does work:
    qdbus org.kde.kglobalaccel /component/kwin
org.kde.kglobalaccel.Component.invokeShortcut 'Switch to Next Desktop'

EXPECTED RESULT
qdbus commands should act the same way as the global shortcuts/invoke shortcut
command.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.66.0
Qt Version: 5.14.0
Kernel Version: 5.4.13-3-MANJARO
OS Type: 64-bit

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to