Bug 311467 - Panel gets focus when icons are added or removed from system tray
Summary: Panel gets focus when icons are added or removed from system tray
Status: RESOLVED UNMAINTAINED
Alias: None
Product: plasma4
Classification: Plasma
Component: widget-systemtray (show other bugs)
Version: 4.9.90 Beta2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-10 14:42 UTC by Antonio Rojas
Modified: 2018-06-08 18:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio Rojas 2012-12-10 14:42:07 UTC
Every time an icon is added or removed from the visible part of the system tray the panel steals the focus from the current application.
This is a regression in beta 2, it didn't happen in beta 1.

Reproducible: Always
Comment 1 Antonio Rojas 2013-02-18 18:04:28 UTC
I was surprised that nobody else was seeing this, as it happened in both my computers and it was extremely annoying. So I did some testing today, starting from a clean configuration and adding my plasmoids one by one, and I found out it's the notes plasmoid in the panel that triggers this. If the notes plasmoid from kdeplasma-addons is added to the panel, the panel steals the focus every time an icon is added or removed from the systray. 
 It's strange, since there seem to be no commits in the notes plasmoid between beta1 and beta2.
Comment 2 Roman K. 2013-04-06 13:06:18 UTC
I can confirm this behaviour. I also have a notes plasmoid in my panel. This happens for every notification that appears or for example when the nepomuk indexer starts appearing to index files. Then the current application looses focus. This indeed can be extremely annoying, e.g. losing focus 10 times while writing one single email.

To workaround, I removed the notes plasmoid.
Comment 3 reisenweber 2014-04-09 10:21:43 UTC
confirmed for KDE4.11.5
How to reproduce: 
* plug or unplug a USB device so "Device Nitifier" moves from hidden to visible section of systray.
OR
* have kmail or konveration add a systray icon for notification (new mail/message).

The latter is double-annoying since, when clicking into konversation window, it removes the systray icon which *again* steals focus, so the window you just clicked doesn't get focus set.
Comment 4 reisenweber 2014-04-09 12:43:49 UTC
http://wstaw.org/m/2014/04/09/plasma-desktopqt1775.png http://wstaw.org/m/2014/04/09/plasma-desktopOF1775.png
(windows rule for "dock") works for me as hotfix.
Comment 5 Nate Graham 2018-06-08 18:59:37 UTC
Hello!

This bug report was filed for KDE Plasma 4, which reached end-of-support status in August 2015. KDE Plasma 5's desktop shell has been almost completely rewritten for better performance and usability, so it is likely that this bug is already resolved in Plasma 5.

Accordingly, we hope you understand why we must close this bug report. If the issue described  here is still present in KDE Plasma 5.12 or later, please feel free to open a new ticket in the "plasmashell" product after reading https://community.kde.org/Get_Involved/Bug_Reporting

If you would like to get involved in KDE's bug triaging effort so that future mass bug closes like this are less likely, please read https://community.kde.org/Get_Involved#Bug_Triaging

Thanks for your understanding!

Nate Graham