Adam Jackson <[email protected]> writes:

> Signed-off-by: Adam Jackson <[email protected]>
> ---
>  dix/window.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/dix/window.c b/dix/window.c
> index f3b6d2e..b0c2d9f 100644
> --- a/dix/window.c
> +++ b/dix/window.c
> @@ -2568,7 +2568,7 @@ MapWindow(WindowPtr pWin, ClientPtr client)
>          if (SubStrSend(pWin, pParent))
>              DeliverMapNotify(pWin);
>  
> -        if (!pParent->realized)
> +        if (!pParent->realized && !pParent->paintable)
>              return Success;
>          RealizeTree(pWin);
>          if (pWin->viewable) {
> @@ -2637,7 +2637,7 @@ MapSubwindows(WindowPtr pParent, ClientPtr client)
>  
>              if (!pFirstMapped)
>                  pFirstMapped = pWin;
> -            if (pParent->realized) {
> +            if (pParent->realized || pParent->paintable) {
>                  RealizeTree(pWin);
>                  if (pWin->viewable) {
>                      anyMarked |= (*pScreen->MarkOverlappedWindows)
>                  (pWin, pWin,

This needs the fixup at the end of the series which sets realized values
based on the parent realized values, and sets the viewable value based
on the parent viewable value, but sets the paintable value solely based
on the drawable.class.

-- 
[email protected]

Attachment: pgpEW9Qv0lh46.pgp
Description: PGP signature

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to