Bug 522229 - Task Switcher: mouse wheel scroll always moves selection forward, cannot go to previous window
Summary: Task Switcher: mouse wheel scroll always moves selection forward, cannot go t...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: tabbox (other bugs)
Version First Reported In: 6.7.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: regression
: 524953 (view as bug list)
Depends on:
Blocks:
 
Reported: 2026-06-26 13:45 UTC by Johnson Star
Modified: 2026-09-03 02:09 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johnson Star 2026-06-26 13:45:02 UTC
SUMMARY
When the Task Switcher (Alt+Tab) is open, scrolling the mouse wheel in
either direction always moves the selection forward to the next window.
It is no longer possible to navigate backward to the previous window
using the mouse wheel. This worked correctly before a recent system
update. Pacman reports the update as kwin (6.6.5-4 -> 6.7.0-3) and then (6.7.0-3 -> 6.7.1-1), it worked correctly in 6.6.5.

Here is also another report about it from the CachyOS forums: https://discuss.cachyos.org/t/task-switcher-mouse-scroll-direction-always-moves-forward-cannot-switch-to-previous-window/31861

STEPS TO REPRODUCE
1. Open several applications
2. Press Alt+Tab to open the Task Switcher
3. Scroll the mouse wheel up, then scroll it down

OBSERVED RESULT
Both scroll directions move the selection forward to the next window;
scrolling up never moves to the previous window.

EXPECTED RESULT
Scrolling down should move to the next window; scrolling up should
move to the previous window.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 6.7.1
KDE Frameworks Version: 6.27.0
Qt Version: 6.11.1

ADDITIONAL INFORMATION
Graphics Platform: Wayland
Triple Monitor setup
Dual dedicated GPU setup
Comment 1 Nate Graham 2026-06-26 17:07:23 UTC
On KDE Linux, I cannot reproduce the issue with scroll gestures on a trackpad, and I don't have a mouse with a wheel handy right now.

Does it work as expected in a new clean user account on the same computer with no customization applied?
Comment 2 Johnson Star 2026-06-26 23:10:13 UTC
I created a test user and can confirm that the bug still persists in that session.
Comment 3 Nate Graham 2026-06-26 23:13:29 UTC
Thanks. Very strange. I'll let the KWin developers take it from here.
Comment 4 cwo 2026-06-27 05:21:35 UTC
On git master with Fedora, I can reproduce this (even with touchpad swiping).

It does not seem to depend on the switcher used - I can reproduce with Compact, Thumbnail Grid, and Large Icons.
Comment 5 Johnson Star 2026-07-02 11:24:54 UTC
In src/tabbox/tabbox.cpp, TabBox::pointerAxis():

    const QModelIndex index = m_tabBox->nextPrev(event->delta);

But It should be 

    const QModelIndex index = m_tabBox->nextPrev(event->delta > 0);

(Atleast I think so), I did a makepkg with this one change and it now works correctly.
Comment 6 Johnson Star 2026-07-06 22:05:36 UTC
Looking at https://invent.kde.org/plasma/kwin/-/merge_requests/9520
It should be fixed in 6.7.3, yippie!
Comment 7 Nate Graham 2026-07-08 22:32:31 UTC
Hopefully! Note that the merge request is not merged yet.
Comment 8 Ivan 2026-07-22 20:55:20 UTC
So 6.7.3 is here, but that MR is still open and the issue still exists, so those fixed-in tags seem wrong :(

Was is forgotten or is there a problem with the fix? I see the TODO and the natural scroll discussion, but those both seem like separate issues...
Comment 9 cwo 2026-07-22 21:05:04 UTC
Correct, the "Version Fixed/Implemented In" field should not have been set (and the bug was and is still CONFIRMED, not RESOLVED FIXED).

 The "natural" scroll thing is relevant to the fix though - otherwise it would just introduce a different bug.
Comment 10 Johnson Star 2026-07-22 21:30:04 UTC
The MR should update its description as well :3
Comment 11 cwo 2026-08-30 07:00:46 UTC
*** Bug 524953 has been marked as a duplicate of this bug. ***
Comment 12 aboodsaad0311 2026-08-30 10:14:11 UTC
why it's been 2 month then
Comment 13 Johnson Star 2026-08-30 11:20:27 UTC
Yeah, I don't really know how the KDE commit process works (I've only learnt git process last year) and I didn't feel like it was my place to ask but why is this simple commit taking so long to be approved?
Comment 14 cwo 2026-08-30 21:52:48 UTC
It's not been approved and merged because a kwin maintainer requested a further change to make the behavior more consistent, the original submitter has not implemented this change, and no one else has submitted a different fix that addressed that problem.
Comment 15 aboodsaad0311 2026-08-31 11:59:34 UTC
(In reply to cwo from comment #14)
> It's not been approved and merged because a kwin maintainer requested a
> further change to make the behavior more consistent, the original submitter
> has not implemented this change, and no one else has submitted a different
> fix that addressed that problem.

so that issue will never fix???
Comment 16 cwo 2026-08-31 12:13:01 UTC
(In reply to aboodsaad0311 from comment #15)
> so that issue will never fix???

It will be fixed once someone submits a patch that the kwin maintainers consider good enough.
Comment 17 Bug Janitor Service 2026-09-01 08:50:07 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/9836
Comment 18 Vlad Zahorodnii 2026-09-01 09:17:48 UTC
Git commit 0d1508f2d2a4c668804a1daeaf65b96eed1d42a7 by Vlad Zahorodnii.
Committed on 01/09/2026 at 08:46.
Pushed by vladz into branch 'master'.

tabbox: Fix scroll direction

M  +1    -1    src/tabbox/tabbox.cpp

https://invent.kde.org/plasma/kwin/-/commit/0d1508f2d2a4c668804a1daeaf65b96eed1d42a7
Comment 19 Vlad Zahorodnii 2026-09-01 09:56:52 UTC
Git commit ec9aca5f340ef9f04f68f459232b36f9e6eb6b18 by Vlad Zahorodnii.
Committed on 01/09/2026 at 09:21.
Pushed by vladz into branch 'Plasma/6.7'.

tabbox: Fix scroll direction
(cherry picked from commit 0d1508f2d2a4c668804a1daeaf65b96eed1d42a7)

M  +1    -1    src/tabbox/tabbox.cpp

https://invent.kde.org/plasma/kwin/-/commit/ec9aca5f340ef9f04f68f459232b36f9e6eb6b18