Bug 187001 - activating kmail from system tray switches desktop
Summary: activating kmail from system tray switches desktop
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.11.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 187010 187125 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-12 19:30 UTC by piemonkey
Modified: 2013-02-09 11:34 UTC (History)
3 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 piemonkey 2009-03-12 19:30:50 UTC
Version:           1.11.1 (using 4.2.1 (KDE 4.2.1), Kubuntu packages)
Compiler:          cc
OS:                Linux (x86_64) release 2.6.27-11-generic

I was using my second virtual desktop and I got an email, so I opened kmail by clicking on the system tray icon. For some reason this switched me onto the first virtual desktop.

I closed kmail completely, then started it, this time on desktop 2, and closed the window, switched to desktop 1, then clicked on the system tray icon. This time it switched me to desktop 2 before opening the window.

Activating the 'on all desktops' toggle before closing the window allows it to open correctly in another desktop, but this has to be pressed each time the window is closed.
Comment 1 Jaime Torres 2009-03-12 20:29:57 UTC
I guess this is the intended behaviour of all kde applications. Just open on the last desktop where the application was used.

The only strange thing is the 'on all desktops' resetting every time the application goes to system tray. That I confirm on kde 4.2.65.
Comment 2 Jaime Torres 2009-03-13 09:29:25 UTC
*** Bug 187010 has been marked as a duplicate of this bug. ***
Comment 3 Jaime Torres 2009-03-13 09:30:59 UTC
You can get your desired behabiour using the Special application settings (in the menu of the upper left corner of the window), marking in the Desktop tab, the option Desktop, All Desktops.
Comment 4 piemonkey 2009-03-13 13:36:06 UTC
> guess this is the intended behaviour of all kde applications.

I wondered about this, but all the other programs that I use act differently, opening in whatever desktop is active. It is possible that these are not following the rules, but I went with filing one bug report, over filing five.

Thanks for the hack, it solves the problem at hand, but introduces a less annoying problem of kmail always following me across desktops.
Comment 5 Jaime Torres 2009-03-14 22:44:34 UTC
*** Bug 187125 has been marked as a duplicate of this bug. ***
Comment 6 Kevin Gilbert 2009-03-16 21:44:04 UTC
Firstly, thanks Jaime, the suggestion in Comment #3 does what I wanted. But (don't you hate that word!) it only affects the current KMail / Kontact instance. That property is lost on restart. So...

1) Right-click on the title bar / Configure Window Behaviour
2) Window Specific / New
3) Detect Window Properties / click within Kmail window / Use window class (whole application)
4) Geometry tab / Desktop / Remember / All Desktops
5) OK / OK

Seems to work OK but may need some refinement - it's the first time I've used that part of KDE.
Comment 7 Kevin Gilbert 2009-03-16 21:45:17 UTC
Oh, should have said in my previous post, happy for this Bug to be closed.
Comment 8 Adrián Chaves (Gallaecio) 2009-06-19 17:49:24 UTC
I don't think it should be closed. I think this KMail's default behaviour should not be default. It should open in the same desktop it is called by defauld, and should be possible to configure it to stay just in a fixed desktop.

This default behaviour is only present in KMail, and I couldn't configure it to do what the bugs description asks for.
Comment 9 Adrián Chaves (Gallaecio) 2009-06-19 17:53:54 UTC
By the way, I think this bug may be related (duplicate?) of Bug 118262
Comment 10 Adrián Chaves (Gallaecio) 2010-08-10 18:18:34 UTC
Following #6 comment instructions does not work for me. It gets reset to the Desktop I had Kmail on instead of "All Desktops" :'(
Comment 11 Adrián Chaves (Gallaecio) 2010-12-12 23:44:09 UTC
It looks like this behaviour doesn't happen anymore with KMail 2. Testing it in KDE SC 4.6 Beta 1. Can anyone confirm?
Comment 12 Adrián Chaves (Gallaecio) 2013-02-09 11:34:56 UTC
Marking as resolved, since it’s been working for me for more than a year and there has not been further feedback since then.