Don't log the X error handler message in non-debug builds,

it's getting tiring seeing users refer to these "errors".


svn path=/trunk/KDE/kdebase/workspace/; revision=958739
This commit is contained in:
Luboš Luňák 2009-04-24 14:45:13 +00:00
parent 4d801d5d4f
commit 322dd7abe9

View file

@ -176,8 +176,10 @@ static int x11ErrorHandler( Display* d, XErrorEvent* e )
if( ignore_badwindow && ( e->error_code == BadWindow || e->error_code == BadColor ))
return 0;
#ifndef NDEBUG
//fprintf( stderr, "kwin: X Error (%s)\n", KXErrorHandler::errorMessage( *e, d ).data());
kWarning( 1212 ) << "kwin: X Error (" << errorMessage( *e, d ) << ")";
#endif
if( kwin_sync )
fprintf( stderr, "%s\n", kBacktrace().toLocal8Bit().data() );