xserver: Branch 'master'

Peter Hutterer whot at kemper.freedesktop.org
Wed Sep 2 21:20:55 PDT 2009


 dix/property.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f04fe06ae244b851b38be824b1a80f2f8a030591
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date:   Thu Sep 3 14:17:14 2009 +1000

    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 at who-t.net>

diff --git a/dix/property.c b/dix/property.c
index 10b8482..9ec5dc6 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))
     {


More information about the xorg-commit mailing list