summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--composite/compext.c2
1 files changed, 1 insertions, 1 deletions
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);