diff --git a/nvidiahack.cpp b/nvidiahack.cpp index da41b00394..9bb9936a32 100644 --- a/nvidiahack.cpp +++ b/nvidiahack.cpp @@ -38,8 +38,13 @@ class kwinnvidiahack kwinnvidiahack::kwinnvidiahack() { const char* env = getenv( "KWIN_NVIDIA_HACK" ); +#if 1 // turned on by default + if( env == NULL || env[ 0 ] != '0' ) + setenv( "__GL_YIELD", "NOTHING", true ); +#else // turned off by default if( env != NULL && env[ 0 ] != '0' ) setenv( "__GL_YIELD", "NOTHING", true ); +#endif } kwinnvidiahack kwinnvidiahackinst;