Bug 429194

Summary: qdbus org.kde.KWin /KWin org.kde.KWin.previousDesktop returns (no arguments) in QDBusViewer
Product: [Plasma] kwin Reporter: Phos <phyllon>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: herzenschein, nate
Priority: NOR    
Version First Reported In: 5.23.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Phos 2020-11-16 13:49:40 UTC
SUMMARY
Running the command qdbus org.kde.KWin /KWin org.kde.KWin.previousDesktop does nothing. Expected to go to the previous desktop. However qdbus org.kde.KWin /KWin org.kde.KWin.nextDesktop works properly.

STEPS TO REPRODUCE
1. Open terminal
2. type in qdbus org.kde.KWin /KWin org.kde.KWin.previousDesktop

OBSERVED RESULT
Nothing Happens

EXPECTED RESULT
Should go to previous desktop

SOFTWARE/OS VERSIONS

Operating System: Manjaro Linux
KDE Plasma Version: 5.20.2
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1
Kernel Version: 5.9.3-1-MANJARO
OS Type: 64-bit
Memory: 31.3 GiB of RAM

ADDITIONAL INFORMATION
qdbus org.kde.KWin /KWin org.kde.KWin.nextDesktop works properly
Comment 1 Thiago Sueto 2020-11-22 02:41:46 UTC
Hmm, I can partially reproduce this.

Apparently previousDesktop doesn't cycle between virtual desktops (VDs), so if you have 3 VDs in 1 row and you're on VD1, previousDesktop doesn't go to VD3 as you'd expect. If you're on VD2 or VD3 however it works correctly. The same occurs with nextDesktop with the opposite scenario.

Does this occur for you too, Phos?
Comment 2 Phos 2020-11-28 12:13:58 UTC
(In reply to Thiago Sueto from comment #1)
> Hmm, I can partially reproduce this.
> 
> Apparently previousDesktop doesn't cycle between virtual desktops (VDs), so
> if you have 3 VDs in 1 row and you're on VD1, previousDesktop doesn't go to
> VD3 as you'd expect. If you're on VD2 or VD3 however it works correctly. The
> same occurs with nextDesktop with the opposite scenario.
> 
> Does this occur for you too, Phos?

Yep, it is as you described. It doesn't wrap and go to VD1 --> VD4.
Comment 3 Phos 2022-10-16 14:40:09 UTC
Closed after I found out that I was an idiot.