[PATCH] Silence "Generic Event Extension missing on display" warning.

Peter Hutterer peter.hutterer at who-t.net
Mon Feb 9 14:12:49 PST 2009


If we're already doing a check anyway, we don't need to print an extra
warning.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---

This arguably is the wrong solution as it skips the XMissingExtension path
altogether and thus robs applications of the chance to use a custom handler
for that. Though I'm not sure how you'd use that in this case anyway.

 src/Xge.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/Xge.c b/src/Xge.c
index 90fbce5..6991553 100644
--- a/src/Xge.c
+++ b/src/Xge.c
@@ -161,8 +161,7 @@ cleanup:
 static Bool
 _xgeCheckExtension(Display* dpy, XExtDisplayInfo* info)
 {
-    XextCheckExtension(dpy, info, xge_extension_name, False);
-    return True;
+    return XextHasExtension(info);
 }
 
 
-- 
1.6.0.6



More information about the xorg-devel mailing list