From: Kristian Høgsberg <[email protected]> Needed for use in the XWayland submodule, as well as presumably most other things doing rootless or capture.
Signed-off-by: Kristian Høgsberg <[email protected]> --- composite/compalloc.c | 16 ++++++++++++++++ composite/compositeext.h | 4 ++++ 2 files changed, 20 insertions(+) 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); extern _X_EXPORT RESTYPE CompositeClientWindowType; -- 1.7.10.4 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
