summaryrefslogtreecommitdiff
path: root/composite/compext.c
diff options
context:
space:
mode:
Diffstat (limited to 'composite/compext.c')
-rw-r--r--composite/compext.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/composite/compext.c b/composite/compext.c
index 8b1d45403..dde22b2d2 100644
--- a/composite/compext.c
+++ b/composite/compext.c
@@ -231,6 +231,9 @@ ProcCompositeNameWindowPixmap (ClientPtr client)
if (!cw)
return BadMatch;
+ if (!pWin->mapped)
+ return BadMatch;
+
pPixmap = (*pWin->drawable.pScreen->GetWindowPixmap) (pWin);
if (!pPixmap)
return BadMatch;