KDElibs: KSystemTray: On window close dialog
Lubos Lunak
l.lunak at suse.cz
Wed Oct 6 10:33:02 BST 2004
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 at suse.cz , l.lunak at kde.org
Drahobejlova 27 tel: +420 2 9654 2373
190 00 Praha 9 fax: +420 2 9654 2374
Czech Republic http://www.suse.cz/
More information about the kde-core-devel
mailing list