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

(cherry picked from 724f9cb578 commit)
This commit is contained in:
Aaron Plattner 2006-12-05 13:44:05 -08:00 committed by Adam Jackson
parent d1e8b7c4a4
commit a092419fe7

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);