Xge: remove warning messages about missing Xge extension event translations

Submitted by Keith Packard on March 13, 2014, 9:41 p.m.

Details

Message ID 1394746912-7547-1-git-send-email-keithp@keithp.com
State Accepted
Commit 11aad96bd689d54156064d2e81213dc827a689d1
Headers show

Not browsing as part of any series.

Commit Message

Keith Packard March 13, 2014, 9:41 p.m.
When mixing Xlib and xcb, it's quite possible for some events to be
received for xcb-only extensions, which will subsequently not be
translatable by the Xge WireToEvent/EventToWire hooks

Signed-off-by: Keith Packard <keithp@keithp.com>
---
 src/Xge.c | 7 -------
 1 file changed, 7 deletions(-)

Patch hide | download patch | download mbox

diff --git a/src/Xge.c b/src/Xge.c
index 5c4d72d..2811ae8 100644
--- a/src/Xge.c
+++ b/src/Xge.c
@@ -265,9 +265,6 @@  _xgeWireToEvent(Display* dpy, XEvent* re, xEvent *event)
         it = it->next;
     }
 
-    fprintf(stderr,
-        "_xgeWireToEvent: Unknown extension %d, this should never happen.\n",
-            extension);
     return False;
 }
 
@@ -295,10 +292,6 @@  _xgeEventToWire(Display* dpy, XEvent* re, xEvent* event)
         it = it->next;
     }
 
-    fprintf(stderr,
-        "_xgeEventToWire: Unknown extension %d, this should never happen.\n",
-        extension);
-
     return Success;
 }
 

Comments

Keith Packard <keithp@keithp.com> writes:

> When mixing Xlib and xcb, it's quite possible for some events to be
> received for xcb-only extensions, which will subsequently not be
> translatable by the Xge WireToEvent/EventToWire hooks

(More context: And xcb-event-loop applications using GL have to feed
Xlib all events, in case they those events happen to be ones that DRI2
GL is supposed to silently consume).

Reviewed-by: Eric Anholt <eric@anholt.net>