<?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>492116</bug_id>
          
          <creation_ts>2024-08-24 06:15:45 +0000</creation_ts>
          <short_desc>meta-tab to switch windows then escape enters tabs in XWayland editors</short_desc>
          <delta_ts>2024-08-27 20:01:52 +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>input</component>
          <version>6.1.4</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>484992</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="JJ">web</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>nate</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2348293</commentid>
    <comment_count>0</comment_count>
    <who name="JJ">web</who>
    <bug_when>2024-08-24 06:15:45 +0000</bug_when>
    <thetext>SUMMARY
I have meta-tab bound to the window switcher in KDE Plasma. When I press escape after tabbing to another window (or the same one wrapping around), the number of tabs that I pressed are inserted into the focus of the original window.

STEPS TO REPRODUCE
1. Launch an editor **that runs under XWayland**, for example VS Code. Open a new editor window.
2. Open at least *two* different application windows. Go back to VS Code.
3. meta-tab-tab to the next-next window. Before releasing the meta key but after releasing the tab key, press escape.

OBSERVED RESULT
A tab is inserted into VS Code. This stacks with additional tabs (before releasing meta). It also works with shift+tab (upon which shift+tab are entered).

EXPECTED RESULT
No tabs are inserted into VS Code.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.6.46-lts
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
This only appears to happen under XWayland. I tested this against the Helix text editor, running in Kitty, running in XWayland, and observed the behavior. I then changed Kitty&apos;s configuration settings to run natively under Wayland and the behavior did not occur. Similarly, VS Code is running under XWayland. It does not happen in `&lt;textarea&gt;` boxes in my Firefox (like this one), which is running natively under Wayland. (this is all tested with xeyes.)

I am not sure if this is a recent regression. I only noticed it upon updating to kwin 6.1.4, and I press escape from meta-tabbing a lot. However: I also recently switched to an editor running under XWayland (VS Code) - my previous one (Sublime) ran natively. (so it&apos;s probably not a recent regression.)

I would suspect this is not necessarily unique to the window switcher, though it could be. I don&apos;t have any other commands which I could &quot;escape&quot; from to test with, though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2349154</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-08-27 20:01:26 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 489325 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2349156</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-08-27 20:01:52 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 484992 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>