Bug 429194 - qdbus org.kde.KWin /KWin org.kde.KWin.previousDesktop returns (no arguments) in QDBusViewer
Summary: qdbus org.kde.KWin /KWin org.kde.KWin.previousDesktop returns (no arguments) ...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.23.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-16 13:49 UTC by Phos
Modified: 2022-10-16 14:40 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.