diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2006-12-05 12:42:12 -0800 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2006-12-05 12:42:12 -0800 |
commit | 3690de9b1b0902d395bc7d071fc05ebc8f75be2b (patch) | |
tree | 61e5d9a2f8962a515eefea010a377b2527ea6c22 | |
parent | f9f7d7f3be53c808abb5eaceb7a1abc55744a210 (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.
-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); |