diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2006-12-05 12:42:12 -0800 |
---|---|---|
committer | Adam Jackson <ajax@benzedrine.nwnk.net> | 2006-12-10 18:21:17 -0500 |
commit | d1e8b7c4a4dcbeefbe93fe0de0270593a8d80b94 (patch) | |
tree | f12660fd3ff0b864744a140ee489b1b719f9234d | |
parent | 2cba9a4f1caf32a2ee41fd8811e8e0e802610985 (diff) |
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 3690de9b1b0902d395bc7d071fc05ebc8f75be2b commit)
-rw-r--r-- | composite/compext.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/composite/compext.c b/composite/compext.c index a7ad4e2fd..ec5e1fab9 100644 --- a/composite/compext.c +++ b/composite/compext.c @@ -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); |