Bug #9219: Use pWin->viewable instead of pWin->realized to catch InputOnly windows too.

This commit is contained in:
Aaron Plattner 2006-12-05 13:44:05 -08:00
parent 3690de9b1b
commit 724f9cb578

View File

@ -270,7 +270,7 @@ ProcCompositeNameWindowPixmap (ClientPtr client)
return BadWindow;
}
if (!pWin->realized)
if (!pWin->viewable)
return BadMatch;
LEGAL_NEW_RESOURCE (stuff->pixmap, client);