NON-KDE apps, clicking system tray icon does not raise window

This is weird and I’m hoping someone can confirm.

In 13.1, clicking the system tray icon not only gave application focus, but also raised the window. Now, it demands attention but the window remains beneath others until clicking on the application’s task manager entry/button. I have not adjusted KDE special window/application settings from the defaults. Clean install, fully updated, not upgrade. Only using apps from good repos.

Steps to reproduce:

  1. NON-KDE application (i.e. Clementine/Calibre) running, closed to tray (not minimised);
  2. Any other application open on desktop; and
  3. Click application’s system tray icon;

Observed result:
Application’s task bar entry appears/demands attention, application window appears beneath other open windows; only clicking task bar entry raises window.

Expected result:
Task bar entry appears, application window raised, given focus.

KDE “system tray-ed” apps behave as expected, i.e. Akregator, KMail, etc. This only seems to affect NON-KDE applications.

Anyone else see this?

Same result here, i can’t open remmina once i close to tray. I’m installing kde framework update if change the situation.

I’m not seeing the problem here.

Both Calibre and “apcgmon” are showing up on top when I click the tray icon.

Well, okay, the first time that I clicked “apcgmon” it showed up partly behind another window. So I clicked the icon again to put it back in the tray. And the next time it showed up on top.

However: I do use “Focus follows mouse” and I have configured "Raise on hover (delayed by 750ms) as part of the “Focus follows mouse” settings (in “Configure desktop” → “Window Management”). I’m not sure if that setting is relevant.

I had not noticed that Calibre can go in the tray. Thanks for pointing that out.

This might be a problem with old-style XEmbed icons (which Plasma5’s system tray doesn’t support at all).

Try to install xembed-sni-proxy from here:
http://download.opensuse.org/repositories/home:/wolfi323:/branches:/home:/wolfi323:/test/openSUSE_Leap_42.1/

This among other things tries to fix a problem with mouse clicks for certain applications (mostly java based ones).
You might have to double-click though.

Or, for GTK applications you can install libappindicator1 and/or libappindicator3-1 (depending on whether it’s GTK2 or GTK3) , this should make them use the “new” (available since 2009) SNI system tray protocol. Doesn’t help with all of them though AFAIK.

Clementine and Calibre are Qt4 applications though, they should use SNI natively (if sni-qt is installed).

I’m accustomed to it raising the window to the fore on first click. My second and subsequent clicks on the icon do not raise it, either.

However: I do use “Focus follows mouse” and I have configured "Raise on hover (delayed by 750ms) as part of the “Focus follows mouse” settings (in “Configure desktop” → “Window Management”). I’m not sure if that setting is relevant.

It might be, not sure.

I had not noticed that Calibre can go in the tray. Thanks for pointing that out.

:slight_smile:

I have xembed-sni-proxy-0.0.1git~20151001~0d6ed03-1.1.x86_64 installed. Your version throws up a bunch of dependency issues here.

Or, for GTK applications you can install libappindicator1 and/or libappindicator3-1 (depending on whether it’s GTK2 or GTK3) , this should make them use the “new” (available since 2009) SNI system tray protocol. Doesn’t help with all of them though AFAIK.

Clementine and Calibre are Qt4 applications though, they should use SNI natively (if sni-qt is installed).

sni-qt is there. I’ll install the GTK libs, will report if anything changes.

Thanks.

That’s the one included in Leap 42.1 which has some problems.

Your version throws up a bunch of dependency issues here.

It shouldn’t throw up dependency issues at all.

What kind of dependency issues do you get?

I misspoke. Not dependency issues.

# rpm -i xembed-sni-proxy-0.0.1git~20151104~ded1538-33.1.x86_64.rpm 
warning: xembed-sni-proxy-0.0.1git~20151104~ded1538-33.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID 23312922: NOKEY
        file /etc/xdg/autostart/xembedsniproxy.desktop from install of xembed-sni-proxy-0.0.1git~20151104~ded1538-33.1.x86_64 conflicts with file from package xembed-sni-proxy-0.0.1git~20151001~0d6ed03-1.1.x86_64
        file /usr/bin/xembedsniproxy from install of xembed-sni-proxy-0.0.1git~20151104~ded1538-33.1.x86_64 conflicts with file from package xembed-sni-proxy-0.0.1git~20151001~0d6ed03-1.1.x86_64

So, I tried removing the installed package first in YaST and noped out when it wanted to take a bunch of packages with it.

How do I get from here to there? Be gentle. :slight_smile:

UPDATE: I notice now that the window does not appear beneath all open windows on the desktop, but appears immediately beneath the top-most/active window. Perhaps this distinction is helpful?

e.g. Open two windows, say Firefox then Dolphin (ACTIVE), click the system tray icon of Clementine – opens beneath Dolphin, above Firefox.

Use “rpm -U” instead, to update the package…

Then it’s probably not a problem of the system tray.
Maybe the “focus prevention” settings? (Configure Desktop->Windows Behavior)
Try to set it to “None”. Although I don’t see such a problem with the default “Low” either…

Set to “none” – seems to have solved it. This is strange because I’ve never had to change this from the default “low” in the past. I hope I don’t notice any adverse effects from this setting.

Thank you.