Bug 497121

Summary: Shortcut "Switch to Screen to the Left" does not work when no open windows
Product: [Plasma] kwin Reporter: Zane Godden <zane>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: minor CC: 60f31543-f82f-492a-8430-25db5521568b, nate
Priority: NOR Keywords: multiscreen
Version First Reported In: 6.2.4   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Zane Godden 2024-12-06 09:55:07 UTC
STEPS TO REPRODUCE
1. Virtual Desktops (I have 9 and this is tested on Desktop 1. Other virtual desktops seems unaffected)
2.  In a dual monitor setup (Horizontal) create shortcuts for Switch to Screen to the Left/Right
3. Open a window on the right screen with no window on the left
4. Use shortcut to switch to screen to the left

OBSERVED RESULT
The left screen is not selected.

EXPECTED RESULT
The left screen should be selected regardless if a window is open. If the inverse is done, a window opened on the left screen but none open on the right, the shortcut switch to screen to the right, does work as expected.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 41
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel: 6.11.10-lqx1.fc41

ADDITIONAL INFORMATION
I have also tested this with the shortcut "Switch to Next Screen" and "Switch to Previous Screen" and this also exhibits the same behaviour. If there is no window open to the right and the left screen is selected, Switch to Next Screen works as expected. If there is no window open to the left and the right screen is selected, Switch to Previous Screen does not work.