scudcloud icon indicating copy to clipboard operation
scudcloud copied to clipboard

Clicking on Scudcloud system tray icon doesn't raise the window above the window with the current focus

Open therealdano opened this issue 9 years ago • 6 comments

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

  1. Close the Scudcloud window with "Close to tray" enabled.
  2. Change the focus to another window
  3. Click on the Scudcloud system tray icon

therealdano avatar Sep 20 '16 03:09 therealdano

Hi @therealdano and thank you for raising this issue!

I'll test this and KDE5 and try to fix it! :)

raelgc avatar Sep 20 '16 10:09 raelgc

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".

paol avatar Oct 15 '16 20:10 paol

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 avatar Oct 18 '16 07:10 advancingu

@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 avatar Oct 18 '16 10:10 raelgc

@raelgc No, nothing beyond default Unity.

advancingu avatar Oct 18 '16 11:10 advancingu

@advancingu I just recorded a simple GIF to show how it's supposed to work:

scudcloud_on_systray

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).

raelgc avatar Oct 18 '16 12:10 raelgc