* Sven Neumann ([EMAIL PROTECTED]) wrote:
> Hi,
> 
> Hallvar Helleseth <[EMAIL PROTECTED]> writes:
> 
> > > perhaps an API to freeze and thaw the window stack would help?
> > 
> > I'm not sure what you mean by that. I've been playing around a little:
> > I added a function to IDirectFBWindow: AddChild(thiz, win)
> > then whenever thiz->Move(thiz, x, y) it also moves the child windows. 
> > It only repaints once... (region from TL window to BR window). optionally
> > it could repaint successivly the regions of each window.
> 
> > My window manager does window decorations by adding 4 windows around the
> > real window. Moving the 5 windows seperatly with repainting inbetween
> > isn't very optimal.
> 
> freeze would stop all window stack repainting until you thaw it again.
> You could then freeze, move all five windows and thaw when they are
> all in place.

Yeah, I already tried that, although I did repaint the whole layer when
I thawed which is REALLY a bad idea. I guess it would be possible to
store the regions that need repainting and then calculate the most
optimal way of repainting (TL window to BR window in one repaint or
several repaints for each region)

In my code for it, src/core/windows.c:repaint_stack just returns when the
layer is frozen.

> > I'm working on a window manager for DirectFB, but it's impossible to
> > make it usefull the way DirectFB is right now. Is it not meant to be
> > possible, or should I just start to creating a seperate library that
> > wraps DirectFB. My goal is to have a desktop w/apps using DirectFB.
> 
> it would definitely help if you could propose an API that would fit
> your needs.
>

I'll sure do that. If you like the API I'll code it too! Just have to wait
till all my exams are over (June 10th)


(no need to reply to this If you don't want)
Hallvar Helleseth


-- 
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-users" as subject.

Reply via email to