Bug 350944 - Clicking on systray icon yields unpredictable result
Summary: Clicking on systray icon yields unpredictable result
Status: RESOLVED DUPLICATE of bug 365308
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Tray (show other bugs)
Version: 5.3.1
Platform: Kubuntu Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 350610 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-08-04 07:28 UTC by Thomas Tanghus
Modified: 2020-01-15 20:18 UTC (History)
7 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 Thomas Tanghus 2015-08-04 07:28:44 UTC
When I click on a systray icon the corresponding application sometimes comes to the front, sometimes not.

I normally have the following applications in the systray: quassel, bitcoin-qt, clementine, kontact and kleopatra.

kontact always comes to the top when clicking on it, but all the others seem to be stuck one z-index below.
Just for testing I set Akregator[*] to dock in in the the systray, and it also comes to top, so it seems like it's Qt-only apps that don't. The one exception is kleopatra, but it seems like it hasn't had any changes for a long time, so maybe it uses an obsolete API?

Another thing I noticed is that solaar doesn't dock anymore, so maybe there's a problem with gtk apps as well?

[*] I run Akregator separately because for a while it crashed so often, bringing down Kontact - so now I'm used to it ;)

Reproducible: Always

Steps to Reproduce:
1. I believe it's pretty much explained above
2.
3.
Comment 1 David Edmundson 2015-08-04 14:13:51 UTC
*** Bug 350610 has been marked as a duplicate of this bug. ***
Comment 2 David Edmundson 2015-08-04 14:17:53 UTC
Can we try and turn this into a specific list with results for:

KF5 app:  Works fine

kdelibs4 app:  Works fine

Qt5 app using our QPA: Needs testing

Qt4 app using sni-qt: Needs testing

GTK2 using appindicator: Needs testing

GTK3 using appindicator: Needs testing



My understanding is it's a bug in just appindicator, but we should check the rest are all working fine.
Comment 3 Thomas Tanghus 2015-08-04 16:53:12 UTC
(In reply to David Edmundson from comment #2)
> Can we try and turn this into a specific list with results for:

> KF5 app: Works fine 

I'm on a Kubuntu release, so the apps are not KF5 yet?

> kdelibs4 app:  Works fine

I don't know where e.g. kleopatra fits in. I says KDE Development Platform Version 4.14.8 but still stays 1 z-index below when activated via systray. Sorry for the CSS lingo, but that's all I've been doing for too long time.

> My understanding is it's a bug in just appindicator, but we should check the
> rest are all working fine.

Is appindicator i library or..?
Comment 4 arne anka 2015-11-03 15:28:50 UTC
- thunderbird: 
- clementine (qt only port of amarok):
very rarely (mostly shortly after starting) comes to the front, usually it stays behind whatever window has focus

- skype: mostly comes to the fore, but sometimes doesn't

thunderbird (AFAIK) is GTK, while both clementine and skype are Qt.
i am using the sni-qt package from debian/sid based on 
https://launchpad.net/sni-qt
Comment 5 Alexander Mentyu 2018-02-26 18:51:11 UTC
Kleopatra app window sometimes doesn't appear into the foreground after left click on tray icon
Clementine app window almost always doesn't appear into the foreground
Quassel sometimes doesn't appear into the foreground - and almost always isn't hiding after click on tray icon
Akregator sometimes doesn't appear into the foreground - but it appears after subsequent click on tray icon

kleopatra 17.12.2-1
clementine 1.3.1-14
quassel-client-0.12.4-4
akregator 17.12.2-1

Plasma: 5.12.2
Apps: 17.12.2
Frameworks: 5.43.0
Qt: 5.10.1
Kernel: 4.14.20-2-MANJARO
OS: Netrunner Rolling
Comment 6 Alexander Mentyu 2018-02-26 22:26:47 UTC
Although results in my previous comment may be due to Focus stealing prevention setting set to 'Medium'
Comment 7 Thomas Tanghus 2018-02-26 23:32:40 UTC
(In reply to Alexander Mentyu from comment #6)
> Although results in my previous comment may be due to Focus stealing
> prevention setting set to 'Medium'

Setting Focus stealing prevention to High does indeed bring Clementine to the foreground, but it still doesn't hide again when clicked on systray, and it prevents the Plasma Launcher from showing.
Isn't it application specific, since it happens differently on different apps?
I haven't coded Qt/Plasma for years, so I have no idea on how to implement window rules.
Comment 8 Nate Graham 2020-01-15 20:18:52 UTC

*** This bug has been marked as a duplicate of bug 365308 ***