Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
handlers.c
Log Message:
Add debug for X errors.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/handlers.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -3 -r1.46 -r1.47
--- handlers.c 7 May 2005 11:19:58 -0000 1.46
+++ handlers.c 2 Jun 2005 17:06:08 -0000 1.47
@@ -175,7 +175,7 @@
void
EHandleXError(Display * d __UNUSED__, XErrorEvent * ev)
{
-/* char buf[64]; */
+ char buf[64];
if ((ev->request_code == X_ChangeWindowAttributes)
&& (ev->error_code == BadAccess))
@@ -191,10 +191,13 @@
}
}
-#if 0
- XGetErrorText(disp, ev->error_code, buf, 63);
- fprintf(stderr, "Whee %i: %s : %i\n", time(NULL), buf, ev->request_code);
-#endif
+ if (EventDebug(1))
+ {
+ XGetErrorText(disp, ev->error_code, buf, 63);
+ Eprintf("*** ERROR: xid=%#lx error=%i req=%i/%i: %s\n",
+ ev->resourceid, ev->error_code,
+ ev->request_code, ev->minor_code, buf);
+ }
}
void
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs