From f04fe06ae244b851b38be824b1a80f2f8a030591 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 3 Sep 2009 14:17:14 +1000 Subject: [PATCH] dix: don't return BadMatch from GetProperty (#23562) dixLookupWindow may return BadMatch if the window in question isn't actually a window. In this case, GetProperty needs to return BadWindow - not BadMatch. X.Org Bug 23562 Signed-off-by: Peter Hutterer --- dix/property.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dix/property.c b/dix/property.c index 10b8482b4..9ec5dc6ae 100644 --- a/dix/property.c +++ b/dix/property.c @@ -474,7 +474,7 @@ ProcGetProperty(ClientPtr client) } rc = dixLookupWindow(&pWin, stuff->window, client, win_mode); if (rc != Success) - return rc; + return (rc == BadMatch) ? BadWindow : rc; if (!ValidAtom(stuff->property)) {