Clicking on Scudcloud system tray icon doesn't raise the window above the window with the current focus
ScudCloud Version
/usr/lib/python3/dist-packages/scudcloud/scudcloud.py:27: PyGIWarning: Unity was imported without specifying a version first. Use gi.require_version('Unity', '7.0') before import to ensure that the right version gets loaded. from gi.repository import Unity, Dbusmenu ScudCloud 1.31 Python 3.5.2 Qt 4.8.7 PyQt 4.11.4 SIP 4.17
Distro and Desktop info
- Distribution: Ubuntu (Kubuntu)
- Version/Release: 16.04.1 LTS
- Desktop environment: KDE5
Expected behavior
Click on the tray icon when Scudcloud is closed and another window has the focus. I would expect the Scudcloud window to appear over everything else with the keyboard focus applied to it.
Actual behavior
The window appears behind the active window. I have to either switch to Scudcloud or click on the Scudcloud icon in the task manager to raise it.
Steps to reproduce
- Close the Scudcloud window with "Close to tray" enabled.
- Change the focus to another window
- Click on the Scudcloud system tray icon
Hi @therealdano and thank you for raising this issue!
I'll test this and KDE5 and try to fix it! :)
This is the KDE window manager's fault (I use scudcloud in KDE too). Unfortunately KDE's focus stealing prevention is badly implemented and causes new windows to "pop under" in a lot of cases. Scudcloud is not the only victim of this.
You need to go to System Settings > Window Management > Window Behaviour and turn off "Focus stealing prevention".
This is an issue in stock Ubuntu 16.04 with Unity as well. The window opens in the background after clicking Show in the "tray" icon menu.
@advancingu I just tested here and worked as expected in Unity at Ubuntu 16.04. But I don't have KDE (or any other DE installed). Do you have any other desktop environment installed?
@raelgc No, nothing beyond default Unity.
@advancingu I just recorded a simple GIF to show how it's supposed to work:

Maybe we're missing a dependency, something like that.
This continues to happen even after a X.org restart? (I.e., logout and login on Unity).