packages: kde4-kdebase-workspace/kde4-kdebase-workspace-brightness.patch -=?UTF-8?Q?=20?=...
arekm
arekm at pld-linux.org
Fri Apr 20 08:59:13 CEST 2012
Author: arekm Date: Fri Apr 20 06:59:13 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- make step by 6 and not by 10
---- Files affected:
packages/kde4-kdebase-workspace:
kde4-kdebase-workspace-brightness.patch (1.1 -> 1.2)
---- Diffs:
================================================================
Index: packages/kde4-kdebase-workspace/kde4-kdebase-workspace-brightness.patch
diff -u packages/kde4-kdebase-workspace/kde4-kdebase-workspace-brightness.patch:1.1 packages/kde4-kdebase-workspace/kde4-kdebase-workspace-brightness.patch:1.2
--- packages/kde4-kdebase-workspace/kde4-kdebase-workspace-brightness.patch:1.1 Fri Apr 20 00:13:14 2012
+++ packages/kde4-kdebase-workspace/kde4-kdebase-workspace-brightness.patch Fri Apr 20 08:59:08 2012
@@ -14,7 +14,7 @@
if (!controls.isEmpty()) {
m_cachedBrightness = brightness(Screen);
-+ m_cachedBrightness_timer.start();
++ m_cachedBrightness_timer.start();
kDebug() << "current screen brightness: " << m_cachedBrightness;
}
@@ -23,11 +23,23 @@
void PowerDevilUPowerBackend::brightnessKeyPressed(PowerDevil::BackendInterface::BrightnessKeyType type)
{
+ if (m_cachedBrightness_timer.elapsed() < 100)
-+ return; // two key pressed delivered at once; 100ms marign
++ return; // two key presses delivered for single physical key press; 100ms marign
+
BrightnessControlsList controls = brightnessControlsAvailable();
QList<QString> screenControls = controls.keys(Screen);
+@@ -169,9 +169,9 @@
+ if (qFuzzyCompare(currentBrightness, m_cachedBrightness)) {
+ float newBrightness;
+ if (type == Increase) {
+- newBrightness = qMin(100.0f, currentBrightness + 10);
++ newBrightness = qMin(100.0f, currentBrightness + 6);
+ } else {
+- newBrightness = qMax(0.0f, currentBrightness - 10);
++ newBrightness = qMax(0.0f, currentBrightness - 6);
+ }
+
+ if (setBrightness(newBrightness, Screen)) {
@@ -174,11 +178,14 @@
newBrightness = brightness(Screen);
if (!qFuzzyCompare(newBrightness, m_cachedBrightness)) {
================================================================
---- CVS-web:
http://cvs.pld-linux.org/packages/kde4-kdebase-workspace/kde4-kdebase-workspace-brightness.patch?r1=1.1&r2=1.2
More information about the pld-cvs-commit
mailing list