Bug 522015 - Touchpad middle key and three finger gesture not working for closing windows in desktop grid
Summary: Touchpad middle key and three finger gesture not working for closing windows ...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-overview (other bugs)
Version First Reported In: 6.7.0
Platform: CachyOS Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: regression
: 522506 (view as bug list)
Depends on:
Blocks:
 
Reported: 2026-06-22 17:42 UTC by mrmojito
Modified: 2026-07-09 20:59 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mrmojito 2026-06-22 17:42:12 UTC
DESCRIPTION
The shortcut for closing windows in desktop grid mode does not working when using a touchpad.
Pressing the physical middle button of the touchpad or using the three fingers gesture does not make any difference, the windows do not close.
Instead, if you use a mouse, the shortcut works.

STEPS TO REPRODUCE
1. Enter the desktop grid using META+W or by moving the cursor on the top left corner of the screen.
2. Move the cursor over a window.
3. Press the middle button of the touchpad or try using the three finger gesture mapped as middle button press in the system settings.

OBSERVED RESULT
Any window is not closing.

EXPECTED RESULT
The window should close.

SOFTWARE/OS VERSIONS
Operating System: CachyOS Linux
KDE Plasma Version: 6.7.0
KDE Frameworks Version: 6.27.0
Qt Version: 6.11.1

ADDITIONAL INFORMATION
I monitored the input via `libinput debug-events` while performing the 3-finger tap and also pressing the physical middle button of the touchpad inside the Overview (desktop grid). The hardware and libinput correctly register and send the BTN_MIDDLE event, confirming this is not a hardware or libinput issue:

 event9   POINTER_BUTTON               +15.711s    BTN_MIDDLE (274) pressed, seat count: 1
 event9   POINTER_BUTTON               +15.792s    BTN_MIDDLE (274) released, seat count: 0
Comment 1 Orlando Rodriguez 2026-06-28 02:49:09 UTC
Same bug in my laptop. Additionally, the right-click that pins the windows is not working in Overview (same problem than middle-click to close). With mouse, both are working as expected.
Comment 2 Nate Graham 2026-06-29 15:00:38 UTC
I can reproduce the issue on KDE Linux.
Comment 3 Bug Janitor Service 2026-07-02 13:54:55 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/9523
Comment 4 Sky Poincet 2026-07-04 17:26:58 UTC
*** Bug 522506 has been marked as a duplicate of this bug. ***
Comment 5 Zamundaaa 2026-07-06 16:55:29 UTC
Git commit 82eaba4c1f8a5aa44ef8be4b746148c1d09d12ae by Xaver Hugl.
Committed on 06/07/2026 at 15:21.
Pushed by zamundaaa into branch 'master'.

plugins/overview: fix middle click with touchpads

acceptedPointerTypes filters by the type of interaction, which for touchpads is
"finger". I don't quite understand why that API even exists, but it's definitely
wrong for this. Instead of checking how the user interacts with the device,
simply filter for the actual mouse and touchpad device types.

M  +1    -1    src/plugins/overview/qml/Main.qml

https://invent.kde.org/plasma/kwin/-/commit/82eaba4c1f8a5aa44ef8be4b746148c1d09d12ae
Comment 6 Zamundaaa 2026-07-06 20:09:32 UTC
Git commit 4cb9e3bc64ce518abde6b56b40799b76ccac82f6 by Xaver Hugl.
Committed on 06/07/2026 at 19:54.
Pushed by zamundaaa into branch 'Plasma/6.7'.

plugins/overview: fix middle click with touchpads

acceptedPointerTypes filters by the type of interaction, which for touchpads is
"finger". I don't quite understand why that API even exists, but it's definitely
wrong for this. Instead of checking how the user interacts with the device,
simply filter for the actual mouse and touchpad device types.


(cherry picked from commit 82eaba4c1f8a5aa44ef8be4b746148c1d09d12ae)

Co-authored-by: Xaver Hugl <xaver.hugl@kde.org>

M  +1    -1    src/plugins/overview/qml/Main.qml

https://invent.kde.org/plasma/kwin/-/commit/4cb9e3bc64ce518abde6b56b40799b76ccac82f6