mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-06 10:50:11 +01:00
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:
parent
2cba9a4f1c
commit
d1e8b7c4a4
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue