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.
This commit is contained in:
Aaron Plattner 2006-12-05 12:42:12 -08:00
parent f9f7d7f3be
commit 3690de9b1b
1 changed files with 4 additions and 1 deletions

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