<?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>450287</bug_id>
          
          <creation_ts>2022-02-15 06:28:56 +0000</creation_ts>
          <short_desc>After interacting with an app&apos;s System Tray icon, left-clicking anywhere on the panel activates the icon&apos;s app</short_desc>
          <delta_ts>2023-03-22 14:45:03 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>System Tray widget</component>
          <version>5.24.1</version>
          <rep_platform>Debian unstable</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>409768</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>regression</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Norbert Preining">norbert</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>bugseforuns</cc>
    
    <cc>m.kurz</cc>
    
    <cc>materka</cc>
    
    <cc>nate</cc>
    
    <cc>noahadvs</cc>
    
    <cc>thflorek</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>2104780</commentid>
    <comment_count>0</comment_count>
    <who name="Norbert Preining">norbert</who>
    <bug_when>2022-02-15 06:28:56 +0000</bug_when>
    <thetext>SUMMARY
Since the update from 5.23.90 to 5.24 (both tried on Arch Linux and Debian unstable), the system tray icons behave strange in some ways:
- minimizing some windows to tray icons, then click on *any* icon on the task bar pops up the context menu of the systray icon
- some applications (known: anydesk) lost their systray icon context menu

A similar bug was present in 5.22.90 and fixed for 5.23, but something seems to have creeped in again between 5.23.90 and 5.24.0 final release

STEPS TO REPRODUCE

Misplaced click
1. start steam, maximize it
2. click on the top bar X to minimize it to tray icon
3. click on the icon of any application in the task bar
4. the context menu of the steam tray icon pops up (far from the actual mouse pointer location!)

(If needed, I can try to capture a screen shot of that)

Lost context menu
1. Install anydesk
2. right/left click on the systray icon
3. no context menu is shown


ADDITIONAL COMMENTS
The same behavior appeared with both frameworks 5.90 and 5.91, so it seems not to depend on that.
Also, the same behavior is shown on Arch Linux (packages made by Arch maintainers) as well as my own OBS builds of KDE/Plasma for Debian, so on two independent builds.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.24.0
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Kernel Version: 5.16.9-zen1-0.1-zen-custom (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-6700K CPU @ 4.00GHz
Memory: 62.8 GiB of RAM
Graphics Processor: AMD Radeon RX 5700 XT</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2104782</commentid>
    <comment_count>1</comment_count>
    <who name="Norbert Preining">norbert</who>
    <bug_when>2022-02-15 06:35:12 +0000</bug_when>
    <thetext>Additional comment concerning the &quot;Misplaced click&quot;:

No need for binary programs, I can reproduce this with ksnip:
- right-click on ksnip tray icon, select &quot;Open editor&quot;
- click on the Window decoration X to close it to the tray icon
- click on any icon in the taskbar

Observed result: the ksnip editor reappears
Expected result: the application of the clicked icon appears</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2104785</commentid>
    <comment_count>2</comment_count>
    <who name="Norbert Preining">norbert</who>
    <bug_when>2022-02-15 06:38:37 +0000</bug_when>
    <thetext>One more comment concerning reproducibility with ksnip:
Interestingly it only happens when I **right** click and select &quot;Open Editor&quot;

When I just simply click on the tray icon of ksnip it also shows the editor, but then the misplaced click is not reproducible, while in the former case (right click) it is 100% reproducible.

The same is the case with Steam, Right-click actions only trigger a misplaced click, not left-click actions on the tray.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2104836</commentid>
    <comment_count>3</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2022-02-15 11:22:23 +0000</bug_when>
    <thetext>The context menu should be fixed today with Plasma 5.24.1. See bug 449870.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2105095</commentid>
    <comment_count>4</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-02-15 21:28:37 +0000</bug_when>
    <thetext>Can you confirm which of those bugs are still present in 5.24.1?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2105114</commentid>
    <comment_count>5</comment_count>
    <who name="Norbert Preining">norbert</who>
    <bug_when>2022-02-15 21:52:22 +0000</bug_when>
    <thetext>I will retest with 5.24.1 and report back, will need 1-2 days to have the packages ready.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2105142</commentid>
    <comment_count>6</comment_count>
    <who name="Norbert Preining">norbert</who>
    <bug_when>2022-02-15 22:45:41 +0000</bug_when>
    <thetext>The &quot;misplaced-mouse-click&quot; is still present on Plasma 5.24.1 / Arch

The Debian packages are built ATM.

The context menu will need confirmation from a user of my Debian packages, I will inquire.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2105243</commentid>
    <comment_count>7</comment_count>
    <who name="Thomas Florek">thflorek</who>
    <bug_when>2022-02-16 06:26:55 +0000</bug_when>
    <thetext>Anydesk&apos;s context menu is again working.

The &quot;misplaced-mouse-click&quot; is still present on Plasma 5.24.1 / Debian unstable</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2105284</commentid>
    <comment_count>8</comment_count>
    <who name="Norbert Preining">norbert</who>
    <bug_when>2022-02-16 09:39:33 +0000</bug_when>
    <thetext>Like Thomas I can confirm that on Debian/unstable with my own OBS builds (frameworks 5.91, plasma 5.24.1), as well as with Arch builds, the strange misplaced clicks can be reproduced with e.g. ksnip in the same way as described above (right click ..)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2106977</commentid>
    <comment_count>9</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-02-21 21:23:22 +0000</bug_when>
    <thetext>The remaining issue seems like an X11 version of Bug 433079.

Noah, could you take a look?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2106982</commentid>
    <comment_count>10</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-02-21 21:29:06 +0000</bug_when>
    <thetext>Oh, there is an old bug report about this already: Bug 409768.

Let&apos;s continue there.

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

    </bug>

</bugzilla>