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 <http://bugs.freedesktop.org/show_bug.cgi?id=23562> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
84eb4c66a4
commit
f04fe06ae2
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue