diff options
author | scuri <scuri> | 2009-12-04 16:06:55 +0000 |
---|---|---|
committer | scuri <scuri> | 2009-12-04 16:06:55 +0000 |
commit | cda0e2e503bd7ae005803b903119e45d35851ade (patch) | |
tree | 8ddc0c7d434d9d584073acb1f40464077699b940 /src/x11/cdx11.c | |
parent | 8a0f04d754bf24f1e2779a3647a665f9e548a9d3 (diff) |
*** empty log message ***
Diffstat (limited to 'src/x11/cdx11.c')
-rw-r--r-- | src/x11/cdx11.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/x11/cdx11.c b/src/x11/cdx11.c index bbc9420..88bd184 100644 --- a/src/x11/cdx11.c +++ b/src/x11/cdx11.c @@ -56,10 +56,10 @@ static int cdxErrorHandler(Display* dpy, XErrorEvent *err) if (err->request_code==X_FreeColors && err->error_code==BadAccess) return 0; - XGetErrorText(dpy, err->error_code, msg, 80 ); - fprintf(stderr,"CanvasDraw: Xlib request %d: %s\n", err->request_code, msg); + XGetErrorText(dpy, err->error_code, msg, 80); + fprintf(stderr,"X Error of failed request %d: %s\n", err->request_code, msg); - return 0; + return 0; /* ignore always */ } static void update_colors(cdCtxCanvas *ctxcanvas) @@ -2383,7 +2383,7 @@ cdCtxCanvas *cdxCreateCanvas(cdCanvas* canvas, Display *dpy, int scr, Drawable w if (first) { - if(!getenv("CD_XERROR")) + if (!getenv("CD_XERROR")) XSetErrorHandler(cdxErrorHandler); } |