force KWin to use the native graphicssystem

svn path=/trunk/KDE/kdebase/workspace/; revision=926631
icc-effect-5.14.5
Andreas Hartmetz 2009-02-15 21:43:57 +00:00
parent b49c213e59
commit e63cc90102
1 changed files with 12 additions and 1 deletions

View File

@ -474,7 +474,18 @@ KDE_EXPORT int kdemain( int argc, char * argv[] )
aboutData.addAuthor( ki18n( "Daniel M. Duley" ),KLocalizedString(), "mosfet@kde.org" );
aboutData.addAuthor( ki18n( "Luboš Luňák" ), ki18n( "Maintainer" ), "l.lunak@kde.org" );
KCmdLineArgs::init( argc, argv, &aboutData );
// HACK: append "--graphicssystem native" to argument list to force KWin to use this backend
int myargc = argc + 2;
char **myargv = (char **)malloc( ( myargc + 1 ) * sizeof(char *) );
for ( int i = 0; i < argc; i++ )
{
myargv[i] = argv[i];
}
myargv[ argc ] = "--graphicssystem";
myargv[ argc + 1 ] = "native";
myargv[ argc + 2 ] = 0;
KCmdLineArgs::init( myargc, myargv, &aboutData );
KCmdLineOptions args;
args.add( "lock", ki18n( "Disable configuration options" ));