<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>522015</bug_id>
          
          <creation_ts>2026-06-22 17:42:12 +0000</creation_ts>
          <short_desc>Touchpad middle key and three finger gesture not working for closing windows in desktop grid</short_desc>
          <delta_ts>2026-07-09 20:59:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>kwin</product>
          <component>effects-overview</component>
          <version>6.7.0</version>
          <rep_platform>CachyOS</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>regression</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mrmojito</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>dunwellantwi</cc>
    
    <cc>kdedev</cc>
    
    <cc>nate</cc>
    
    <cc>sort465</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kwin/-/commit/4cb9e3bc64ce518abde6b56b40799b76ccac82f6</cf_commitlink>
          <cf_versionfixedin>6.7.3</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2525699</commentid>
    <comment_count>0</comment_count>
    <who name="">mrmojito</who>
    <bug_when>2026-06-22 17:42:12 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2527551</commentid>
    <comment_count>1</comment_count>
    <who name="Orlando Rodriguez">sort465</who>
    <bug_when>2026-06-28 02:49:09 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2528027</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2026-06-29 15:00:38 +0000</bug_when>
    <thetext>I can reproduce the issue on KDE Linux.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2528868</commentid>
    <comment_count>3</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2026-07-02 13:54:55 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/9523</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2529246</commentid>
    <comment_count>4</comment_count>
    <who name="Sky Poincet">stlnb</who>
    <bug_when>2026-07-04 17:26:58 +0000</bug_when>
    <thetext>*** Bug 522506 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2529643</commentid>
    <comment_count>5</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2026-07-06 16:55:29 +0000</bug_when>
    <thetext>Git commit 82eaba4c1f8a5aa44ef8be4b746148c1d09d12ae by Xaver Hugl.
Committed on 06/07/2026 at 15:21.
Pushed by zamundaaa into branch &apos;master&apos;.

plugins/overview: fix middle click with touchpads

acceptedPointerTypes filters by the type of interaction, which for touchpads is
&quot;finger&quot;. I don&apos;t quite understand why that API even exists, but it&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2529710</commentid>
    <comment_count>6</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2026-07-06 20:09:32 +0000</bug_when>
    <thetext>Git commit 4cb9e3bc64ce518abde6b56b40799b76ccac82f6 by Xaver Hugl.
Committed on 06/07/2026 at 19:54.
Pushed by zamundaaa into branch &apos;Plasma/6.7&apos;.

plugins/overview: fix middle click with touchpads

acceptedPointerTypes filters by the type of interaction, which for touchpads is
&quot;finger&quot;. I don&apos;t quite understand why that API even exists, but it&apos;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 &lt;xaver.hugl@kde.org&gt;

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

https://invent.kde.org/plasma/kwin/-/commit/4cb9e3bc64ce518abde6b56b40799b76ccac82f6</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>