[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:       Lubos Lunak <l.lunak () suse ! cz>
Date:       2004-10-06 9:33:02
Message-ID: 200410060933.02238.l.lunak () suse ! cz
[Download RAW message or body]

On Tuesday 05 of October 2004 22:28, Jason Keirstead wrote:
> On October 5, 2004 07:36 pm, Sébastien Laoût [temporar] wrote:
> > And that's what the patch do too:
> >
> >     // Compute size and position of the pixmap to be grabbed:
> >     QPoint g = mapToGlobal(pos());
>
> Yes but you have to do much more than that, to handle the cases where, for
> example, the system tray is on the second desktop in a mulitple monitor
> configuration.

 This code gives position of the systray icon, but not geometry of the whole 
systray area. But if the code will simply take some area rougly around the 
systray icon, that should be sufficient. Also QWidget::isVisible() should 
actually say whether the icon is shown or not. It should - in case it won't, 
XGetWindowAttributes and map_state == IsViewable should be reliable.

-- 
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o.  e-mail: l.lunak@suse.cz , l.lunak@kde.org
Drahobejlova 27  tel: +420 2 9654 2373
190 00 Praha 9   fax: +420 2 9654 2374
Czech Republic   http://www.suse.cz/
[prev in list] [next in list] [prev in thread] [next in thread] 

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