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

List:       kde-core-devel
Subject:    Re: ParentRelative
From:       m_elter () t-online ! de (Matthias Elter)
Date:       2001-02-13 10:23:51
[Download RAW message or body]

On Tuesday 13 February 2001 00:15, Richard Moore wrote:
> Keith Packard wrote:
> > Around 18 o'clock on Feb 12, Matthias Elter wrote:
> > > Hi
> > >
> > > Some XLib expert around?
> > >
> > > If I set the background-pixmap attribute of a window to ParentRelative
> > > (n= o=20
> > > matter directly or by using
> > > QWidget::setBackgroundMode(X11ParentRelative)= I=20
> > > would expect X to send me Exposure events in case the windows
> > > position=20 relative to the parent changes. But it does not?!
> >
> > Then you'd expect too much; the background doesn't change the exposure
> > behaviour.  Sorry.
>
> I guess you could work around this by installing an event filter
> on the parent window assuming it is a Qt widget, if it isn't I
> guess you'd need to reimplement the X11EventFilter() method.

The problem is I do not only have to make sure the widget when it's position 
relative to the parent changes gets repainted but also it's childs (also 
ParentRelative) and it's childs childs. This is hacky, I dropped the idea.

-- 
I love the "swooshing" sound deadlines make as they go by.

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

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