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:
parent
4d801d5d4f
commit
322dd7abe9
1 changed files with 2 additions and 0 deletions
2
main.cpp
2
main.cpp
|
@ -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() );
|
||||
|
|
Loading…
Reference in a new issue