Revert "dix: don't return BadMatch from GetProperty (#23562)"

This reverts commit f04fe06ae2.

dixLookupWindow no longer returns BadMatch. No other caller was checking
for it, so this problem is now fixed in the utility function.

Signed-off-by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Chris Halse Rogers 2012-01-05 01:22:40 +00:00 committed by Keith Packard
parent ef492e9797
commit 63a8012947

View File

@ -474,7 +474,7 @@ ProcGetProperty(ClientPtr client)
}
rc = dixLookupWindow(&pWin, stuff->window, client, win_mode);
if (rc != Success)
return (rc == BadMatch) ? BadWindow : rc;
return rc;
if (!ValidAtom(stuff->property))
{