KDElibs: KSystemTray: On window close dialog

Jason Keirstead jason at keirstead.org
Tue Oct 5 19:55:47 BST 2004

On October 5, 2004 09:53 am, Lubos Lunak wrote:
>  This will find out if there is systray which can handle the fd.o systray
> spec, which is at least the Kicker on and the GNOME one. This doesn't help
> much though, as I don't know how to get the position of the systray; at
> least I don't know any other way than patching Kicker and ignoring the
> others.

You might want to look at the code Kopete uses for it's message bubble. I know 
mETz went to HUGE effort to make that work at all possible locations of the 
tray, including multiple desktop configurations.

The relevant code is in kdenetwork/kopete/kopete/kopeteballoon.cpp in 

Basically Kopete makes the balloon and calls 
m_balloon->setAnchor( systemTray->mapToGlobal(systemTray->pos())), with 
systemTray being the KSystemTray pointer, and the setAnchor code inside 
KopeteBalloon doing the magic.

There are two major products that came out of Berkeley: LSD and UNIX.
We do not believe this to be a coincidence.  ~Jeremy S. Anderson

More information about the kde-core-devel mailing list