Bug 485248 - Keyboard shortcuts for "window to next desktop" and "switch to next desktop" behave inconsistently
Summary: Keyboard shortcuts for "window to next desktop" and "switch to next desktop" ...
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 6.0.3
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2024-04-08 21:34 UTC by Keigh Rim
Modified: 2024-05-02 13:37 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Keigh Rim 2024-04-08 21:34:13 UTC
SUMMARY

While "switch to next/prev desktop" keys do not move desktop focus in a circular manner, "window to next/prev desktop" keys move windows circularly, namely moving a window from the first desktop to "previous" desktop lands the window (and focus) to the final desktop. 

STEPS TO REPRODUCE
0. Set up two virtual desktops, keyboard shortcuts for relevant actions. 
1. Focus on desktop 1. 
2. Hit "switch to next desktop" key, confirm desktop focus shifts to desktop 2
3. Hit "switch to next desktop" key again, confirm nothing happens
4. Open a dolphin window, and put the focus on it
5. Hit "window to next desktop"

EXPECTED RESULT
Nothing happens since I'm on the final desktop and there is no next desktop, just like "switch to next desktop" action.

OBSERVED RESULT
dolphin window and desktop focus are together moved to desktop 1. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch
(available in About System)
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3
Comment 1 Keigh Rim 2024-04-09 11:45:03 UTC
Related to this, "switch to widow above/below/to-the-left/to-the-right" actions are all working circularly. These actions do not shift virtual desktops but shift the focus among windows in the current virtual desktop. However unlike the virtual desktop-related actions, these actions are named explicitly with the directions, hence circular shift behavior of them is not just "inconsistent" but somewhat "wrong" - no one would expect the focus to move upward when asking to go down.
Comment 2 Keigh Rim 2024-04-20 23:22:49 UTC
(In reply to Keigh Rim from comment #0)
> SUMMARY
> 
> While "switch to next/prev desktop" keys do not move desktop focus in a
> circular manner, "window to next/prev desktop" keys move windows circularly,
> namely moving a window from the first desktop to "previous" desktop lands
> the window (and focus) to the final desktop. 
> 
> STEPS TO REPRODUCE
> 0. Set up two virtual desktops, keyboard shortcuts for relevant actions. 
> 1. Focus on desktop 1. 
> 2. Hit "switch to next desktop" key, confirm desktop focus shifts to desktop
> 2
> 3. Hit "switch to next desktop" key again, confirm nothing happens
> 4. Open a dolphin window, and put the focus on it
> 5. Hit "window to next desktop"
> 
> EXPECTED RESULT
> Nothing happens since I'm on the final desktop and there is no next desktop,
> just like "switch to next desktop" action.
> 
> OBSERVED RESULT
> dolphin window and desktop focus are together moved to desktop 1. 
> 
> SOFTWARE/OS VERSIONS
> Linux/KDE Plasma: Arch
> (available in About System)
> KDE Plasma Version: 6.0.3
> KDE Frameworks Version: 6.0.0
> Qt Version: 6.6.3