From ce0a650857e85c0ea1ca00a2eb80306be678d81b Mon Sep 17 00:00:00 2001 From: Lucas Murray Date: Fri, 26 Jun 2009 01:28:15 +0000 Subject: [PATCH] Display debugging messages when compositing mode has been forced by KWIN_COMPOSE or KDE_FAILSAFE environment variables. svn path=/trunk/KDE/kdebase/workspace/; revision=987409 --- composite.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/composite.cpp b/composite.cpp index 04cf62a760..e4565ba59a 100644 --- a/composite.cpp +++ b/composite.cpp @@ -108,13 +108,19 @@ void Workspace::setupCompositing() switch( c ) { case 'O': + kDebug( 1212 ) << "Compositing forced to OpenGL mode by environment variable"; type = OpenGLCompositing; break; case 'X': + kDebug( 1212 ) << "Compositing forced to XRender mode by environment variable"; type = XRenderCompositing; break; default: - kDebug( 1212 ) << "No compositing"; + if( getenv( "KDE_FAILSAFE" )) + kDebug( 1212 ) << "Compositing disabled forcefully by KDE failsafe mode"; + else + kDebug( 1212 ) << "Compositing disabled forcefully by environment variable"; + type = NoCompositing; return; } }