<?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>511631</bug_id>
          
          <creation_ts>2025-11-04 15:59:48 +0000</creation_ts>
          <short_desc>Inactive window gets activated when hovering over it</short_desc>
          <delta_ts>2025-11-20 09:59:27 +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>core</component>
          <version>6.5.1</version>
          <rep_platform>Fedora RPMs</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>HI</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Przemysław Palacz">pprzemal</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>kde</cc>
    
    <cc>linx.system.adm</cc>
    
    <cc>m.kurz</cc>
    
    <cc>malformedneutron</cc>
    
    <cc>nate</cc>
    
    <cc>pallaswept</cc>
    
    <cc>priv.luk</cc>
    
    <cc>xaver.hugl</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kwin/-/commit/2ba475ce6ad74b4ced5ce7577b78e830d2ffefe2</cf_commitlink>
          <cf_versionfixedin>6.5.3</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2467874</commentid>
    <comment_count>0</comment_count>
    <who name="Przemysław Palacz">pprzemal</who>
    <bug_when>2025-11-04 15:59:48 +0000</bug_when>
    <thetext>SUMMARY
Platform: Wayland
Window activation policy: Click to focus
Raising windows: Click raises active window
Raise on hover: unchecked
Happens only on wayland windows, when hoovering over x11 (xwayland) works as expected/previously.

STEPS TO REPRODUCE
1. Open 2 windows
2. Hover over some element that raises native tooltip in the inactive window

OBSERVED RESULT
Inactive window is activated and focused.

EXPECTED RESULT
Inactive window should stay inactive - previous behavior.


SOFTWARE/OS VERSIONS
Linux: 6.17.6
KDE Plasma Version: 6.5.1
KDE Frameworks Version: 6.19.0
Qt Version: 6.10</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2468103</commentid>
    <comment_count>1</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2025-11-05 13:01:22 +0000</bug_when>
    <thetext>Can confirm. That&apos;s quite odd!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2468306</commentid>
    <comment_count>2</comment_count>
    <who name="pallaswept">pallaswept</who>
    <bug_when>2025-11-06 09:08:30 +0000</bug_when>
    <thetext>Thanks for reporting this. I&apos;m glad you figured out how to reproduce it!

My nerves are busted so I wasn&apos;t sure if it was &apos;clicking by itself&apos; or I&apos;d developed a twitch in my index finger and I couldn&apos;t feel it :D</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2468357</commentid>
    <comment_count>3</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-11-06 14:11:01 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/8376</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2468697</commentid>
    <comment_count>4</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2025-11-07 15:52:25 +0000</bug_when>
    <thetext>Git commit 50aa2e6009866afb3fdd1d9586aef4579d25ca1c by Xaver Hugl.
Committed on 07/11/2025 at 12:10.
Pushed by zamundaaa into branch &apos;master&apos;.

workspace: don&apos;t activate or restack popup windows

Activating a popup window implicitly causes its parent to be activated as well,
which makes it get in the way of the previously active window.

Restacking them below the active window sounds sensible on the surface, but also
happens to raise both the popup and its parent above the active window, because
the popup is in a different layer than the active window.
I would like to change restackWindowUnderActive to be more intuitive, but it
looks a bit risky for a bugfix. It can be done later as a refactor.

M  +2    -2    src/workspace.cpp

https://invent.kde.org/plasma/kwin/-/commit/50aa2e6009866afb3fdd1d9586aef4579d25ca1c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2468726</commentid>
    <comment_count>5</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2025-11-07 17:44:14 +0000</bug_when>
    <thetext>Git commit 2ba475ce6ad74b4ced5ce7577b78e830d2ffefe2 by Xaver Hugl.
Committed on 07/11/2025 at 16:34.
Pushed by zamundaaa into branch &apos;Plasma/6.5&apos;.

workspace: don&apos;t activate or restack popup windows

Activating a popup window implicitly causes its parent to be activated as well,
which makes it get in the way of the previously active window.

Restacking them below the active window sounds sensible on the surface, but also
happens to raise both the popup and its parent above the active window, because
the popup is in a different layer than the active window.
I would like to change restackWindowUnderActive to be more intuitive, but it
looks a bit risky for a bugfix. It can be done later as a refactor.


(cherry picked from commit 50aa2e6009866afb3fdd1d9586aef4579d25ca1c)

Co-authored-by: Xaver Hugl &lt;xaver.hugl@kde.org&gt;

M  +2    -2    src/workspace.cpp

https://invent.kde.org/plasma/kwin/-/commit/2ba475ce6ad74b4ced5ce7577b78e830d2ffefe2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2468730</commentid>
    <comment_count>6</comment_count>
    <who name="">malformedneutron</who>
    <bug_when>2025-11-07 18:02:43 +0000</bug_when>
    <thetext>Is this bug related to https://bugs.kde.org/show_bug.cgi?id=511322 in Dolphin by chance? It seems to be the same thing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2468799</commentid>
    <comment_count>7</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-11-08 00:15:47 +0000</bug_when>
    <thetext>*** Bug 511322 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2469571</commentid>
    <comment_count>8</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2025-11-11 14:30:24 +0000</bug_when>
    <thetext>*** Bug 511957 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2470915</commentid>
    <comment_count>9</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2025-11-17 16:12:44 +0000</bug_when>
    <thetext>*** Bug 512107 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>