[PATCH 22/37] dix: MapWindow based on paintable as well

Keith Packard keithp at keithp.com
Tue Oct 28 13:44:01 PDT 2014


Adam Jackson <ajax at redhat.com> writes:

> Signed-off-by: Adam Jackson <ajax at redhat.com>
> ---
>  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.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20141028/8d478ebe/attachment.sig>


More information about the xorg-devel mailing list