Properly reload compositing settings on reconfigure.

svn path=/trunk/KDE/kdebase/workspace/; revision=716806
This commit is contained in:
Luboš Luňák 2007-09-25 09:41:23 +00:00
parent aa26125635
commit 8985ca0b7f
3 changed files with 6 additions and 6 deletions

View file

@ -66,11 +66,6 @@ namespace KWin
void Workspace::setupCompositing()
{
#if defined( HAVE_XCOMPOSITE ) && defined( HAVE_XDAMAGE )
// Driver-specific config detection
CompositingPrefs prefs;
prefs.detect();
options->reloadCompositingSettings( prefs );
if( !options->useCompositing )
{
kDebug( 1212 ) << "Compositing is turned off in options";

View file

@ -201,6 +201,11 @@ unsigned long Options::updateSettings()
// QToolTip::setGloballyEnabled( d->show_tooltips );
// KDE4 this probably needs to be done manually in clients
// Driver-specific config detection
CompositingPrefs prefs;
prefs.detect();
reloadCompositingSettings( prefs );
return changed;
}

View file

@ -34,7 +34,6 @@ class Options : public KDecorationOptions
~Options();
virtual unsigned long updateSettings();
void reloadCompositingSettings(const CompositingPrefs& prefs);
/*!
Different focus policies:
@ -339,6 +338,7 @@ class Options : public KDecorationOptions
QStringList ignoreFocusStealingClasses;
MouseCommand wheelToMouseCommand( MouseWheelCommand com, int delta );
void reloadCompositingSettings(const CompositingPrefs& prefs);
};
extern Options* options;