Commit 1ca0aee9 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Event.c: improve DEBUG output

parent 3c1b1efa
...@@ -2891,9 +2891,21 @@ int nxagentHandleXFixesSelectionNotify(XEvent *X) ...@@ -2891,9 +2891,21 @@ int nxagentHandleXFixesSelectionNotify(XEvent *X)
XFixesSelectionEvent *xfixesEvent = (XFixesSelectionEvent *) X; XFixesSelectionEvent *xfixesEvent = (XFixesSelectionEvent *) X;
if (nxagentXFixesInfo.Initialized == 0 || if (nxagentXFixesInfo.Initialized == 0)
xfixesEvent -> type != (nxagentXFixesInfo.EventBase + XFixesSelectionNotify)) {
#ifdef DEBUG
fprintf(stderr, "nxagentHandleXFixesSelectionNotify: XFixes not initialized - doing nothing.\n");
#endif
return 0;
}
if (xfixesEvent -> type != (nxagentXFixesInfo.EventBase + XFixesSelectionNotify))
{
#ifdef DEBUG
fprintf(stderr, "nxagentHandleXFixesSelectionNotify: event type is [%d] - doing nothing.\n", xfixesEvent->type);
#endif
return 0; return 0;
}
#ifdef TEST #ifdef TEST
fprintf(stderr, "nxagentHandleXFixesSelectionNotify: Handling event.\n"); fprintf(stderr, "nxagentHandleXFixesSelectionNotify: Handling event.\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment