composite: Expose CompositeIsImplicitRedirectException
Make it usable by code outside of the composite layer.
This commit is contained in:
parent
ff0c252e57
commit
9fb1f0ef22
|
@ -41,6 +41,8 @@ extern _X_EXPORT Bool CompositeRegisterImplicitRedirectionException(ScreenPtr pS
|
||||||
|
|
||||||
|
|
||||||
extern _X_EXPORT Bool compIsAlternateVisual(ScreenPtr pScreen, XID visual);
|
extern _X_EXPORT Bool compIsAlternateVisual(ScreenPtr pScreen, XID visual);
|
||||||
|
Bool CompositeIsImplicitRedirectException(ScreenPtr pScreen,
|
||||||
|
XID parentVisual, XID winVisual);
|
||||||
extern _X_EXPORT RESTYPE CompositeClientWindowType;
|
extern _X_EXPORT RESTYPE CompositeClientWindowType;
|
||||||
|
|
||||||
#endif /* _COMPOSITEEXT_H_ */
|
#endif /* _COMPOSITEEXT_H_ */
|
||||||
|
|
|
@ -339,8 +339,8 @@ compIsAlternateVisual(ScreenPtr pScreen, XID visual)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static Bool
|
Bool
|
||||||
compIsImplicitRedirectException(ScreenPtr pScreen,
|
CompositeIsImplicitRedirectException(ScreenPtr pScreen,
|
||||||
XID parentVisual, XID winVisual)
|
XID parentVisual, XID winVisual)
|
||||||
{
|
{
|
||||||
CompScreenPtr cs = GetCompScreen(pScreen);
|
CompScreenPtr cs = GetCompScreen(pScreen);
|
||||||
|
@ -362,7 +362,7 @@ compImplicitRedirect(WindowPtr pWin, WindowPtr pParent)
|
||||||
XID winVisual = wVisual(pWin);
|
XID winVisual = wVisual(pWin);
|
||||||
XID parentVisual = wVisual(pParent);
|
XID parentVisual = wVisual(pParent);
|
||||||
|
|
||||||
if (compIsImplicitRedirectException(pScreen, parentVisual, winVisual))
|
if (CompositeIsImplicitRedirectException(pScreen, parentVisual, winVisual))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (winVisual != parentVisual &&
|
if (winVisual != parentVisual &&
|
||||||
|
|
Loading…
Reference in New Issue