aboutsummaryrefslogtreecommitdiff
path: root/src-qt5
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2016-11-15 10:10:16 -0500
committerKen Moore <ken@ixsystems.com>2016-11-15 10:10:16 -0500
commit0afad0dbbae4440ec311e9682f62686889afbcce (patch)
treed205fc779a29bb94a1082328a3bf7a94d4684c8e /src-qt5
parentAdd knowledge of the new jsonmenu panel plugin to lumina-config. (diff)
downloadlumina-0afad0dbbae4440ec311e9682f62686889afbcce.tar.gz
lumina-0afad0dbbae4440ec311e9682f62686889afbcce.tar.bz2
lumina-0afad0dbbae4440ec311e9682f62686889afbcce.zip
Add the new option for detection GPU accel to the compositor page.
Diffstat (limited to 'src-qt5')
-rw-r--r--src-qt5/core-utils/lumina-config/pages/page_compton.cpp3
-rw-r--r--src-qt5/core-utils/lumina-config/pages/page_compton.ui7
2 files changed, 10 insertions, 0 deletions
diff --git a/src-qt5/core-utils/lumina-config/pages/page_compton.cpp b/src-qt5/core-utils/lumina-config/pages/page_compton.cpp
index 0003c9c8..e3bfe1fd 100644
--- a/src-qt5/core-utils/lumina-config/pages/page_compton.cpp
+++ b/src-qt5/core-utils/lumina-config/pages/page_compton.cpp
@@ -15,6 +15,7 @@ page_compton::page_compton(QWidget *parent) : PageWidget(parent), ui(new Ui::pag
ui->setupUi(this);
connect(ui->text_file, SIGNAL(textChanged()), this, SLOT(settingChanged()) );
connect(ui->check_disablecompton, SIGNAL(toggled(bool)), this, SLOT(settingChanged()) );
+ connect(ui->check_GPUverify, SIGNAL(toggled(bool)), this, SLOT(settingChanged()) );
updateIcons();
}
@@ -29,6 +30,7 @@ void page_compton::SaveSettings(){
emit HasPendingChanges(false);
QSettings settings("lumina-desktop","sessionsettings");
settings.setValue("enableCompositing", !ui->check_disablecompton->isChecked());
+ settings.setValue("compositingWithGpuAccelOnly", ui->check_GPUverify->isChecked());
QString set = QString(getenv("XDG_CONFIG_HOME"))+"/lumina-desktop/compton.conf";
LUtils::writeFile(set, ui->text_file->toPlainText().split("\n"),true);
}
@@ -38,6 +40,7 @@ void page_compton::LoadSettings(int){
emit ChangePageTitle( tr("Compositor Settings") );
QSettings settings("lumina-desktop","sessionsettings");
ui->check_disablecompton->setChecked( !settings.value("enableCompositing", true).toBool() );
+ ui->check_GPUverify->setChecked( settings.value("compositingWithGpuAccelOnly", true).toBool() );
QString set = QString(getenv("XDG_CONFIG_HOME"))+"/lumina-desktop/compton.conf";
qDebug() << "Load Compton settings:" << set;
ui->text_file->setPlainText( LUtils::readFile(set).join("\n") );
diff --git a/src-qt5/core-utils/lumina-config/pages/page_compton.ui b/src-qt5/core-utils/lumina-config/pages/page_compton.ui
index 9083a2fb..857331d6 100644
--- a/src-qt5/core-utils/lumina-config/pages/page_compton.ui
+++ b/src-qt5/core-utils/lumina-config/pages/page_compton.ui
@@ -34,6 +34,13 @@
</widget>
</item>
<item>
+ <widget class="QCheckBox" name="check_GPUverify">
+ <property name="text">
+ <string>Only use compositing with GPU acceleration </string>
+ </property>
+ </widget>
+ </item>
+ <item>
<widget class="QPlainTextEdit" name="text_file"/>
</item>
</layout>
bgstack15