~ubuntu-branches/ubuntu/gutsy/kdebase-workspace/gutsy-backports

« back to all changes in this revision

Viewing changes to kwin/options.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-10-31 19:16:54 UTC
  • Revision ID: james.westby@ubuntu.com-20071031191654-xuof6e1jg6uxqaze
Tags: 3.95.0-0ubuntu1~gutsy1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
    if( !focusPolicyIsReasonable()) // #48786, comments #7 and later
86
86
        focusStealingPreventionLevel = 0;
87
87
 
88
 
    KConfig *gc = new KConfig("kdeglobals", KConfig::CascadeConfig);
 
88
    KConfig *gc = new KConfig("kdeglobals", KConfig::NoGlobals);
89
89
    bool isVirtual = KApplication::desktop()->isVirtualDesktop();
90
90
    KConfigGroup gWindowsConfig(gc, "Windows");
91
91
    xineramaEnabled = gWindowsConfig.readEntry ("XineramaEnabled", isVirtual) &&
161
161
    showDesktopIsMinimizeAll = config.readEntry( "ShowDesktopIsMinimizeAll", false );
162
162
 
163
163
    // Mouse bindings
164
 
    config.changeGroup("MouseBindings");
 
164
    config = KConfigGroup(_config,"MouseBindings");
165
165
    CmdActiveTitlebar1 = mouseCommand(config.readEntry("CommandActiveTitlebar1","Raise"), true );
166
166
    CmdActiveTitlebar2 = mouseCommand(config.readEntry("CommandActiveTitlebar2","Lower"), true );
167
167
    CmdActiveTitlebar3 = mouseCommand(config.readEntry("CommandActiveTitlebar3","Operations menu"), true );
178
178
    CmdAll3 = mouseCommand(config.readEntry("CommandAll3","Resize"), false );
179
179
    CmdAllWheel = mouseWheelCommand(config.readEntry("CommandAllWheel","Nothing"));
180
180
 
181
 
    config.changeGroup("Translucency");
 
181
    config=KConfigGroup(_config,"Compositing");
182
182
    refreshRate = config.readEntry( "RefreshRate", 0 );
183
 
    glStrictBinding = config.readEntry( "GLStrictBinding", false );
184
183
    const HiddenPreviews hps[] = { HiddenPreviewsNever, HiddenPreviewsKeep, HiddenPreviewUpdate, HiddenPreviewsActive };
185
 
    hiddenPreviews = hps[ qBound( 0, config.readEntry( "HiddenPreviews", 3 ), 3 ) ];
 
184
    hiddenPreviews = hps[ qBound( 0, config.readEntry( "HiddenPreviews", 0 ), 3 ) ];
186
185
 
187
186
    // Read button tooltip animation effect from kdeglobals
188
187
    // Since we want to allow users to enable window decoration tooltips
231
230
    glDirect = config.readEntry("GLDirect", prefs.enableDirectRendering() );
232
231
    glVSync = config.readEntry("GLVSync", prefs.enableVSync() );
233
232
    smoothScale = qBound( -1, config.readEntry( "GLTextureFilter", -1 ), 2 );
 
233
    glStrictBinding = config.readEntry( "GLStrictBinding", prefs.strictBinding());
234
234
 
235
235
    xrenderSmoothScale = config.readEntry("XRenderSmoothScale", false );
236
236
    }