KDElibs: KSystemTray: On window close dialog

Lubos Lunak l.lunak at suse.cz
Tue Oct 5 13:53:23 BST 2004


On Monday 04 of October 2004 22:28, Sébastien Laoût [temporar] wrote:
> Hello,
>
> Tried yesterday to discover if kicker is running and currently shown on
> screen.
> I found the following new issues:
>
> * Standard application have DCOP bool app/app-mainwindow#1/shown() call
>   that return if the main window is currently shown or not.
>   Kicker has nothing like this and we can't know if it is shown.
>   Perhapse with KWin. Not tried because of the following issues.
> * User can disable system tray plugin of kicker.
>   But there is no DCOP call to know if a particular plugin is activated.
> * Users can use another system tray manager than kicker.
>   Think to SuperKaramba. Don't know if there are other programs.
>   Oh yes : SlicKer. Another?
>   We should be able to know if A systray manager is running and shown.
>   And then take a screenshot of it (or choose to not show the screenshot
>   for them: easier, at first).
> * Users can use GNOME. That has another systray manager.
>
> I would want to know you opinions about that.
> It's clear we can't manage all that. Or we have a lot of work to do.
> ... Inside KDE but also in desktopintegration.
>
> The question is: should the screenshot patch be canceled and not
> integrated to KDE?
> Or someone find ways to fix problems?
>
> The two first could be solved by adding the corresponding methods to
> kicker.
> Then for the two lasts... don't know.

 QCString screenstr;
 screenstr.setNum(qt_xscreen());
 QCString trayatom = "_NET_SYSTEM_TRAY_S" + screenstr;
 bool is_systray = ( KSelectionWatcher( trayatom ).owner() != None );

 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.

>
> Sincerly,
>
> Sébastien Laoût.

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