[PATCH 3/6] Export CompRedirectSubWindows and friends

Dave Airlie airlied at gmail.com
Tue Nov 6 23:25:39 PST 2012


> diff --git a/composite/compalloc.c b/composite/compalloc.c
> index cc69c68..9f0d910 100644
> --- a/composite/compalloc.c
> +++ b/composite/compalloc.c
> @@ -46,6 +46,7 @@
>  #endif
>
>  #include "compint.h"
> +#include "compositeext.h"
>
>  static void
>  compScreenUpdate(ScreenPtr pScreen)
> @@ -253,6 +254,11 @@ compRestoreWindow(WindowPtr pWin, PixmapPtr pPixmap)
>      }
>  }
>
> +int CompositeRedirectWindow (WindowPtr pWin, int update)
> +{
> +    return compRedirectWindow (serverClient, pWin, update);
> +}
> +
>  /*
>   * Free one of the per-client per-window resources, clearing
>   * redirect and the per-window pointer as appropriate
> @@ -411,6 +417,11 @@ compRedirectSubwindows(ClientPtr pClient, WindowPtr pWin, int update)
>      return Success;
>  }
>
> +int CompositeRedirectSubwindows (WindowPtr pWin, int update)
> +{
> +    return compRedirectSubwindows (serverClient, pWin, update);
> +}
> +
>  /*
>   * Free one of the per-client per-subwindows resources,
>   * which frees one redirect per subwindow
> @@ -482,6 +493,11 @@ compUnredirectSubwindows(ClientPtr pClient, WindowPtr pWin, int update)
>      return BadValue;
>  }
>
> +int CompositeUnRedirectSubwindows (WindowPtr pWin, int update)
> +{
> +    return compUnredirectSubwindows (serverClient, pWin, update);
> +}
> +
>  /*
>   * Add redirection information for one subwindow (during reparent)
>   */
> diff --git a/composite/compositeext.h b/composite/compositeext.h
> index 0b148f0..a072966 100644
> --- a/composite/compositeext.h
> +++ b/composite/compositeext.h
> @@ -34,6 +34,10 @@
>  extern _X_EXPORT Bool CompositeRegisterAlternateVisuals(ScreenPtr pScreen,
>                                                          VisualID * vids,
>                                                          int nVisuals);
> +extern _X_EXPORT int CompositeRedirectSubwindows(WindowPtr pWin,
> +                                                int update);
> +extern _X_EXPORT int CompositeUnRedirectSubwindows (WindowPtr pWin,
> +                                                   int update);

Up there I see three chunks, here I see two?

Dave.


More information about the xorg-devel mailing list