diff options
Diffstat (limited to 'xserver/composite/compwindow.c')
-rw-r--r-- | xserver/composite/compwindow.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/xserver/composite/compwindow.c b/xserver/composite/compwindow.c index bcd230c37..f88238146 100644 --- a/xserver/composite/compwindow.c +++ b/xserver/composite/compwindow.c @@ -320,18 +320,13 @@ compClipNotify(WindowPtr pWin, int dx, int dy) } } -/* - * Returns TRUE if the window needs server-provided automatic redirect, - * which is true if the child and parent aren't both regular or ARGB visuals - */ - -static Bool +Bool compIsAlternateVisual(ScreenPtr pScreen, XID visual) { CompScreenPtr cs = GetCompScreen(pScreen); int i; - for (i = 0; i < cs->numAlternateVisuals; i++) + for (i = 0; cs && i < cs->numAlternateVisuals; i++) if (cs->alternateVisuals[i] == visual) return TRUE; return FALSE; |