diff --git a/composite/compext.c b/composite/compext.c index ec5e1fab9..13936fa18 100644 --- a/composite/compext.c +++ b/composite/compext.c @@ -270,7 +270,7 @@ ProcCompositeNameWindowPixmap (ClientPtr client) return BadWindow; } - if (!pWin->realized) + if (!pWin->viewable) return BadMatch; LEGAL_NEW_RESOURCE (stuff->pixmap, client);