I thought this might be the case,

Is there anyway to know I am shutting down?
I can see a shared->suspended flag but this is for something else.
Have we got a way of knowing we are shutting down?

This used to work ok on DFB 1.0 with FBDev system module (i.e it did not 
reactivate the window stack and clear the buffer).

I will continue looking at the code

Thanks for confirming the issue with my hack!
Daniel Laird

-----Original Message-----
From: Denis Oliver Kropp [mailto:[EMAIL PROTECTED]
Sent: 2008 Oct 15 08:29
To: Daniel J Laird
Cc: directfb-dev@directfb.org
Subject: Re: Layer Clearing at shutdown in DFB 1.2.x

Daniel J Laird wrote:
> If I change:
> layer_control.c -> dfb_layer_remove_context
>
> And remove the
> if(shared->suspended || dfb_layer_context_activate() = DFB_OK)
>
> and replace with
> if(shared->suspended)
>
> It behaves as I would like.  However I have no idea of the side effects.

During shutdown it would be ok to not reactivate older contexts, but at runtime
this is e.g. for switching back to the window stack when a fullscreen 
application
was running.

--
Best regards,
   Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to