[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: KDElibs: KSystemTray: On window close dialog
From:       Jason Keirstead <jason () keirstead ! org>
Date:       2004-10-05 18:55:47
Message-ID: 200410051555.47741.jason () keirstead ! org
[Download RAW message or body]

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

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic