From 322dd7abe9a5cf5aba1bddf47e6847195883ee61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 24 Apr 2009 14:45:13 +0000 Subject: [PATCH] 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 --- main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.cpp b/main.cpp index f532e000e2..cbd2f194d0 100644 --- a/main.cpp +++ b/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() );