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

List:       kde-panel-devel
Subject:    Re: [Panel-devel] Plasma and the window manager (Re:
From:       Jason Stubbs <jasonbstubbs () gmail ! com>
Date:       2007-11-21 17:19:17
Message-ID: 200711220219.17773.jasonbstubbs () gmail ! com
[Download RAW message or body]

On Thursday 22 November 2007 01:20:04 Lubos Lunak wrote:
> On Wednesday 21 of November 2007, Chani wrote:
> > >  As far as I understood the systray widget cannot be handled normally
> > > like others for whatever internal reasons, so if you need to keep it
> > > separately, at least keep it in the toplevel Plasma window. That is,
> > > set the Plasma toplevel widget as its parent, keep it as the topmost
> > > child and keep the position relative to it.
> >
> > I... didn't fully understand that. I still know almost nothing about this
> > windowy stuff; I'm just trying to make existing code less buggy. anyone
> > got a link to a good tutorial? or want to do this themselves? (I can't be
> > certain I'll have time to code again before 4.0 is tagged)
>
>  It should be simple :). QWidget constructor has the QWidget* argument
> specifying the parent - if it's not set, the widget becomes a toplevel
> window, otherwise it's kept inside its parent. In the patch you sent,
> SystemTrayWidget needs the toplevel Plasma widget as its parent, when when
> using mapToGlobal(), instead use mapTo() with the parent (well, or
> mapToParent(), I see). Maybe you'll also need to call raise() on the tray
> widget somewhere. That should do.

I've got it pretty much working but still need to do some cleanups. But bed is 
calling so I'll send a patch tomorrow.

--
Jason Stubbs
_______________________________________________
Panel-devel mailing list
Panel-devel@kde.org
https://mail.kde.org/mailman/listinfo/panel-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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