Bug 493010

Summary: [wayland] With multiple screens in different orientation, keyboard navigation switches virtual desktops instead of switching screens
Product: [Plasma] kwin Reporter: Oded Arbel <oded>
Component: effects-overviewAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: nate, pierre.fransson
Priority: NOR Keywords: multiscreen
Version First Reported In: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Oded Arbel 2024-09-12 08:29:53 UTC
SUMMARY
When using the overview effect with a multi-screen setup, where some screens are vertical and some are horizontal - if the active window is on a vertical screen, it is not possible to switch to a window on the horizontal screen.

Trying to move the keyboard navigation highlight to the other screen causes the overview effect to switch to another virtual desktop instead.

STEPS TO REPRODUCE
1. Setup two screens so that one is horizontal and the other is vertical. Setup more than one virtual desktop.
2. Open an application window on each screen.
3. Activate the window on the horizontal screen.
4. Activate the overview effect
5. Click the LEFT or RIGHT key on the keyboard to switch to the window on the vertical screen.
5. Click the opposite arrow to return to the window on the horizontal screen.

OBSERVED RESULT
The effect will switch to another virtual desktop.

EXPECTED RESULT
The effect should switch back to the window on the horizontal screen.

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 6.1.80
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Kernel Version: 6.8.0-41-generic (64-bit)
Graphics Platform: Wayland
Processors: 20 × 12th Gen Intel® Core™ i7-12700H
Memory: 31.0 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Comment 1 Oded Arbel 2024-09-12 08:35:41 UTC
This problem may not be orientation dependent - I just tried to reproduce the issue after setting both screens to horizontal, and they are the same resolution (1920x1200) and scaling (100%) and the problem reproduces in that configuration as well: when switching from the primary screen to the secondary screen it works fine, but switching in the other direction changes the virtual desktop.

So it could be a primary vs. secondary situation and nothing to do with orientation (which is weird because while vertical screens are still rare, standard multi-screen setups is something that I expect to be in much greater use with people that use the overview).

This is Wayland, btw. I have not tested X11.
Comment 2 Pierre Fransson 2025-07-01 09:31:53 UTC
Can confirm this problem and it does not depend on orientation of screens. The main problem seems to be that switching the current virtual desktop takes precedence over possible selection of windows on secondary screen. The easiest solution would be to not switch virtual desktops at all since it is possible to use the already existing keyboard shortcuts for changing virtual desktop in "overview-mode" as well.

SOFTWARE/OS VERSIONS
Operating System: KDE neon User Edition
KDE Plasma Version: 6.4.1
KDE Frameworks Version: 6.15.0
Graphics Platform: Wayland
Kernel Version: 6.11.0-26-generic (64-bit)
Processors: 16 × AMD Ryzen 7 PRO 4750U with Radeon Graphics
Memory: 32.0 GiB of RAM
Graphics Processor: AMD Radeon Graphics