Bug 177684

Summary: Prevent OSD from showing up when main amarok window is open
Product: [Applications] amarok Reporter: dresnu <j053f.k>
Component: NotificationsAssignee: Amarok Developers <amarok-bugs-dist>
Status: REPORTED ---    
Severity: wishlist CC: admin, leinir, pndiku, valentyn.pavliuchenko
Priority: NOR    
Version: 2.4-GIT   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description dresnu 2008-12-13 15:22:54 UTC
Version:           2.0 (using KDE 4.1.3)
OS:                Linux
Installed from:    Ubuntu Packages

Well the title is pretty self-explanatory. I think it is useless to have the OSD pop up when selecting a song or playing a playlist if the user has the amarok window open. It just gets in the way, showing information that is already shown in amarok itself.
Comment 1 Mark Kretschmann 2008-12-17 08:37:20 UTC
It could be difficult to detect if Amarok is actually visible or not, if you take cross platform into account.

It could be visible, but on a different virtual desktop (Linux), it could be visible, but hidden by another application on top of it, etc. This isn't as easy to get right as it may seem.

Then there is is the question whether this should become an option or the standard behaviour. 

Retargetting to 2.1.
Comment 2 Dan Leinir Turthra Jensen 2008-12-17 09:05:16 UTC
It can be argued (and i think it probably should) that since an OSD provides information to the user when they are otherwise engaged, the OSD should *not* be forced on them when they in fact *are* engaged in Amarok already. So yes, i for one would agree with this request :)
Comment 3 Bugger Simpson 2008-12-20 12:05:09 UTC
I agree with your idea, had just the same thought when I installed amarok2 today. But I would ask for a slightly different feature: I think it would be great to add an option in the OSD dialogue, to only show the OSD, when amarok2 is closed and only shown in the tasks.
That way it would be only shown when amarok is really not visible at all. Downside would be of course, that you won't see the OSD when you haven't really closed amarok2, but if you have some panel open, you will see some information about the current song there. So I think if this is really optional, it wouldn't hurt. Default could also be turned off.
Comment 4 Peter C. Ndikuwera 2009-07-06 11:04:51 UTC
An additional thought. Is it possible for Amarok to use the notifier when a song changes? Just a thought.
Comment 5 Valentyn Pavliuchenko 2010-09-20 21:47:15 UTC
Kopete already has different notification schemes: one for active chat window, another - for inactive ones. Why not use that code?