Bug 462448 - Switching Virtual Desktops with Ctrl+Alt+MouseWheel seems inverted
Summary: Switching Virtual Desktops with Ctrl+Alt+MouseWheel seems inverted
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-30 17:04 UTC by Alexandre Pereira
Modified: 2024-04-29 16:21 UTC (History)
4 users (show)

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


Attachments
Patch for KWin 5.27.x (1.56 KB, patch)
2023-11-27 05:23 UTC, Yevhen Popok
Details
Patch for KWin 5.27.80 (Plasma 6 Alpha) (1.55 KB, patch)
2023-11-27 05:24 UTC, Yevhen Popok
Details
Patch for KWin 5.27.9 (Plasma 5 Stable) (1.35 KB, patch)
2023-11-27 05:43 UTC, Yevhen Popok
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Pereira 2022-11-30 17:04:55 UTC
SUMMARY
Switching virtual desktops using Ctrl+Alt+MouseWheel seems inverted in the direction of just using the mouse wheel on the desktop.
In my case, doing Ctrl+Alt+MouseWheel Up switches a virtual desktop down, and Ctrl+Alt+MouseWheel Down, switches a virtual desktop up. ( I have virtual desktops in a vertical layout )
The opposite happens when just using the mouse wheel and scrolling when the desktop is focused.

Using the mouse setting on the mouse kcm, of inverted scrolling, the opposite from above happens, and the behaviour of the two ways of switching virtual desktop are still different.


STEPS TO REPRODUCE
1. Add some virtual desktops
2. Switch between them using Ctrl+Alt+MouseWheel
3. 

OBSERVED RESULT
The Virtual Desktops switch in an inverted manner, like if it was a gesture movement, not a mouse wheel on a desktop.

EXPECTED RESULT
The Virtual Desktops to switch down when the mouse wheel is scrolled down, and up when scrolled up on the mouse wheel.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Using git version of plasma, and using kwin wayland.
Comment 1 Yevhen Popok 2023-11-27 05:22:16 UTC
Until this issue is resolved, I'm attaching proposed patch from the relevant merge request (https://invent.kde.org/plasma/kwin/-/merge_requests/4602).
Comment 2 Yevhen Popok 2023-11-27 05:23:08 UTC
Created attachment 163520 [details]
Patch for KWin 5.27.x
Comment 3 Yevhen Popok 2023-11-27 05:24:30 UTC
Created attachment 163521 [details]
Patch for KWin 5.27.80 (Plasma 6 Alpha)
Comment 4 Yevhen Popok 2023-11-27 05:43:41 UTC
Created attachment 163522 [details]
Patch for KWin 5.27.9 (Plasma 5 Stable)

(In reply to Yevhen from comment #2)
> Created attachment 163520 [details]
> Patch for KWin 5.27.x

This one depends on another patch. Here's a correct one for Plasma 5.27.9
Comment 5 Fouad 2024-04-29 16:21:23 UTC
Also affected by this bug : kwin 6.0.4 - Archlinux

It seems this shortcut is not widely used/known for this bug to go unnoticed this long.