Fix Unified splash screen

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1253867 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 34869df7a3
commit c1d059ab57

@ -41,7 +41,7 @@ struct ThemeEngine::ThemeEnginePrivate
}; };
ThemeEngine::ThemeEngine( TQWidget *, const char *, const TQStringList& args ) ThemeEngine::ThemeEngine( TQWidget *, const char *, const TQStringList& args )
: TQVBox( 0, "wndSplash", (WFlags)(WStyle_Customize|WX11BypassWM) ), d(0) : TQVBox( 0, "wndSplash", (WFlags)(WStyle_Customize|WX11BypassWM) ), d(0), mUseWM(false)
{ {
d = new ThemeEnginePrivate; d = new ThemeEnginePrivate;
kapp->installX11EventFilter( this ); kapp->installX11EventFilter( this );
@ -56,6 +56,9 @@ ThemeEngine::ThemeEngine( TQWidget *, const char *, const TQStringList& args )
mTheme = new ObjKsTheme( "Default" ); mTheme = new ObjKsTheme( "Default" );
else else
mTheme = new ObjKsTheme( args.first() ); mTheme = new ObjKsTheme( args.first() );
if (args.first() == "Unified") {
mUseWM = true;
}
mTheme->loadCmdLineArgs( KCmdLineArgs::parsedArgs() ); mTheme->loadCmdLineArgs( KCmdLineArgs::parsedArgs() );
} }
@ -89,7 +92,7 @@ void ThemeEngine::addSplashWindow( TQWidget* w )
return; return;
if( d->mSplashWindows.contains( w->winId())) if( d->mSplashWindows.contains( w->winId()))
return; return;
if( !w->testWFlags( WX11BypassWM )) if( !w->testWFlags( WX11BypassWM ) && (mUseWM == false))
{ // All toplevel widgets should be probably required to be WX11BypassWM { // All toplevel widgets should be probably required to be WX11BypassWM
// for KDE4 instead of this ugly hack. // for KDE4 instead of this ugly hack.
static_cast< HackWidget* >( w )->setWFlags( WX11BypassWM ); static_cast< HackWidget* >( w )->setWFlags( WX11BypassWM );

@ -78,6 +78,7 @@ private slots:
private: private:
class ThemeEnginePrivate; class ThemeEnginePrivate;
ThemeEnginePrivate *d; ThemeEnginePrivate *d;
bool mUseWM;
}; };
#endif #endif

Loading…
Cancel
Save