Bug 72773 - systray windows not shown
Summary: systray windows not shown
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-16 19:23 UTC by Michael Reiher
Modified: 2004-03-01 18:41 UTC (History)
0 users

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 Michael Reiher 2004-01-16 19:23:24 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

Hi!

Not quite sure whether this is a  kwin bug or a kicker one. When clicking on a systray icon, say kmix, and the window is hidden it normally gets shown. But this only works when staying on the same desktop. If you show the window, switch to a different desktop and then want to activate the  window by clicking on the tray icon, nothing happens on first click and on second the window appears, but minimized. So you have to click again on the taskbar entry. This is first confusing, seeing only a minimize animation out of the nothing, and later very annoying. (Seems that the window gets minimized on desktop switch, hidden on first click, and shown again on current desktop, still minimized)

PS: Also it feels somehow wrong to me to hide a window that is shown but hidden behind other windows, by clicking on the tray icon. A click on the tray icon should IMO bring it to front. I would even say it  should never close a window at all, that's what the 'X' is for. And instead just show it where ever it is.

Greets Michael
Comment 1 Lubos Lunak 2004-02-02 18:56:22 UTC
Subject: kdelibs/kdeui

CVS commit by lunakl: 

If a window for systray icon is not on the current desktop or is minimized,
clicking the tray icon should show it as well.
CCMAIL: 72773-done@bugs.kde.org


  M +1 -1      ksystemtray.cpp   1.38


--- kdelibs/kdeui/ksystemtray.cpp  #1.37:1.38
@@ -233,5 +233,5 @@ void KSystemTray::activateOrHide()
     KWin::WindowInfo info = KWin::windowInfo( pw->winId() );
     // mapped = visible (but possibly obscured)
-    bool mapped = (info.mappingState() != NET::Withdrawn);
+    bool mapped = (info.mappingState() == NET::Visible) && !info.isMinimized();
 //    - not mapped -> show, raise, focus
 //    - mapped


Comment 2 Michael Reiher 2004-02-27 10:54:15 UTC
Hi!

I just did another CVS update(HEAD) and I can't confirm that the problem is  
fixed, I still have this strange behaviour.

Greets Michael


On Monday 02 February 2004 18:56, Lubos Lunak wrote:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
> http://bugs.kde.org/show_bug.cgi?id=72773
> l.lunak@kde.org changed:
>
>            What    |Removed                     |Added
> ---------------------------------------------------------------------------
>- Status|NEW                         |RESOLVED
>          Resolution|                            |FIXED
>
>
>
> ------- Additional Comments From l.lunak@kde.org  2004-02-02 18:56 -------
> Subject: kdelibs/kdeui
>
> CVS commit by lunakl:
>
> If a window for systray icon is not on the current desktop or is minimized,
> clicking the tray icon should show it as well.
> CCMAIL: 72773-done@bugs.kde.org
>
>
>   M +1 -1      ksystemtray.cpp   1.38
>
>
> --- kdelibs/kdeui/ksystemtray.cpp  #1.37:1.38
> @@ -233,5 +233,5 @@ void KSystemTray::activateOrHide()
>      KWin::WindowInfo info = KWin::windowInfo( pw->winId() );
>      // mapped = visible (but possibly obscured)
> -    bool mapped = (info.mappingState() != NET::Withdrawn);
> +    bool mapped = (info.mappingState() == NET::Visible) &&
> !info.isMinimized(); //    - not mapped -> show, raise, focus
>  //    - mapped

Comment 3 Lubos Lunak 2004-02-27 12:29:32 UTC
Please describe precisely step by step how to reproduce the problem.
Comment 4 Michael Reiher 2004-02-27 20:54:24 UTC
No problem, here we go:

1. Go to some desktop A and do what ever is neccessary to get the kmix main 
window shown.
2. Switch to a different desktop B
3. You want the kmix window now on this desktop. Click on the tray icon. It 
should appear, but it doesn't. Thats actually already the problem: Nothing 
happens on desktop B. (On desktop A, however, the kmix window gets 
minimized.) 
4. Click again on the tray icon. The kmix window appears on desktop B, but 
minimized.
5. Now you have to click on the taskbar entry to get it finally visible on 
desktop B.

Comment 5 Lubos Lunak 2004-03-01 18:41:43 UTC
*** Bug has been marked as fixed ***.