Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 7528c2f0034b5e6ab4ac60c4ee775b93 > files > 21

kdebase-workspace-4.5.5-1.fc13.src.rpm

Index: workspace/kwin/kcmkwin/kwincompositing/main.ui
===================================================================
--- workspace/kwin/kcmkwin/kwincompositing/main.ui	(revision 1176431)
+++ workspace/kwin/kcmkwin/kwincompositing/main.ui	(revision 1176432)
@@ -404,7 +404,7 @@
          </item>
         </widget>
        </item>
-       <item row="2" column="0" colspan="2">
+       <item row="3" column="0" colspan="2">
         <widget class="QCheckBox" name="disableChecks">
          <property name="whatsThis">
           <string>Enabling this option allows compositing to be activated even if some of the internal checks fail. Doing so may make the whole desktop unusable and its use is not recommened. Use only if KWin refuses to activate compositing on a system that should be capable of compositing.
@@ -415,7 +415,7 @@
          </property>
         </widget>
        </item>
-       <item row="3" column="0" colspan="2">
+       <item row="4" column="0" colspan="2">
         <widget class="QGroupBox" name="glGroup">
          <property name="title">
           <string>OpenGL Options</string>
@@ -532,7 +532,7 @@
          </layout>
         </widget>
        </item>
-       <item row="4" column="0" colspan="2">
+       <item row="5" column="0" colspan="2">
         <widget class="QGroupBox" name="xrenderGroup">
          <property name="title">
           <string>XRender Options</string>
@@ -548,7 +548,7 @@
          </layout>
         </widget>
        </item>
-       <item row="5" column="0" colspan="2">
+       <item row="6" column="0" colspan="2">
         <spacer name="verticalSpacer_6">
          <property name="orientation">
           <enum>Qt::Vertical</enum>
@@ -561,6 +561,16 @@
          </property>
         </spacer>
        </item>
+       <item row="2" column="0" colspan="2">
+        <widget class="QCheckBox" name="unredirectFullscreen">
+         <property name="toolTip">
+          <string>Improves performance of fullscreen applications like games and video players. This option can cause flickering when another window is opened above the fullscreen window.</string>
+         </property>
+         <property name="text">
+          <string>Suspend desktop effects for fullscreen windows</string>
+         </property>
+        </widget>
+       </item>
       </layout>
      </widget>
     </widget>
Index: workspace/kwin/kcmkwin/kwincompositing/main.cpp
===================================================================
--- workspace/kwin/kcmkwin/kwincompositing/main.cpp	(revision 1176431)
+++ workspace/kwin/kcmkwin/kwincompositing/main.cpp	(revision 1176432)
@@ -119,6 +119,7 @@
     connect(ui.compositingType, SIGNAL(currentIndexChanged(int)), this, SLOT(changed()));
     connect(ui.windowThumbnails, SIGNAL(activated(int)), this, SLOT(changed()));
     connect(ui.disableChecks, SIGNAL(toggled(bool)), this, SLOT(changed()));
+    connect(ui.unredirectFullscreen , SIGNAL(toggled(bool)), this, SLOT(changed()));
     connect(ui.glMode, SIGNAL(currentIndexChanged(int)), this, SLOT(changed()));
     connect(ui.glTextureFilter, SIGNAL(currentIndexChanged(int)), this, SLOT(changed()));
     connect(ui.glDirect, SIGNAL(toggled(bool)), this, SLOT(changed()));
@@ -443,6 +444,7 @@
     else // shown, or default
         ui.windowThumbnails->setCurrentIndex( 1 );
     ui.disableChecks->setChecked( config.readEntry( "DisableChecks", false ));
+    ui.unredirectFullscreen->setChecked( config.readEntry( "UnredirectFullscreen", true ));
 
     QString glMode = config.readEntry("GLMode", "TFP");
     ui.glMode->setCurrentIndex((glMode == "TFP") ? 0 : ((glMode == "SHM") ? 1 : 2));
@@ -607,6 +609,7 @@
     config.writeEntry("Backend", (ui.compositingType->currentIndex() == OPENGL_INDEX) ? "OpenGL" : "XRender");
     config.writeEntry("HiddenPreviews", hps[ ui.windowThumbnails->currentIndex() ] );
     config.writeEntry("DisableChecks", ui.disableChecks->isChecked());
+    config.writeEntry( "UnredirectFullscreen", ui.unredirectFullscreen->isChecked() );
 
     config.writeEntry("GLMode", glModes[ui.glMode->currentIndex()]);
     config.writeEntry("GLTextureFilter", ui.glTextureFilter->currentIndex());
@@ -752,6 +755,7 @@
     ui.compositingType->setCurrentIndex( 0 );
     ui.windowThumbnails->setCurrentIndex( 1 );
     ui.disableChecks->setChecked( false );
+    ui.unredirectFullscreen->setChecked( true );
     ui.glMode->setCurrentIndex( 0 );
     ui.glTextureFilter->setCurrentIndex( 1 );
     ui.glDirect->setChecked( mDefaultPrefs.enableDirectRendering() );