From 3690de9b1b0902d395bc7d071fc05ebc8f75be2b Mon Sep 17 00:00:00 2001 From: Aaron Plattner Date: Tue, 5 Dec 2006 12:42:12 -0800 Subject: 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. --- composite/compext.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'composite') 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); -- cgit v1.2.3