[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#491979: X server can return BadMatch to WM instead of BadWindow



I would suggest the following change.  This is untested because the
BadWindow or BadMatch error is dependent on a race condition if I
understand correctly.  But it's "obviously correct". :-)

Ben.

--- xorg-server-1.4.2.orig/dix/dixutils.c
+++ xorg-server-1.4.2/dix/dixutils.c
@@ -245,7 +245,7 @@
 {
     int rc;
     rc = dixLookupDrawable((DrawablePtr*)pWin, id, client, M_WINDOW, access);
-    return (rc == BadDrawable) ? BadWindow : rc;
+    return (rc == BadDrawable || rc == BadMatch) ? BadWindow : rc;
 }
 
 _X_EXPORT int


-- 
Ben Hutchings
Usenet is essentially a HUGE group of people passing notes in class.
                      - Rachel Kadel, `A Quick Guide to Newsgroup Etiquette'

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: