Bug #9219: Return BadMatch when trying to name the backing pixmap of an unrealized window.

Before this change, ProcCompositeNameWindowPixmap would name the screen pixmap
if !pWin->realized.
(cherry picked from 3690de9b1b commit)
This commit is contained in:
Aaron Plattner 2006-12-05 12:42:12 -08:00 committed by Adam Jackson
parent 2cba9a4f1c
commit d1e8b7c4a4

View file

@ -269,7 +269,10 @@ ProcCompositeNameWindowPixmap (ClientPtr client)
client->errorValue = stuff->window;
return BadWindow;
}
if (!pWin->realized)
return BadMatch;
LEGAL_NEW_RESOURCE (stuff->pixmap, client);
cw = GetCompWindow (pWin);