summaryrefslogtreecommitdiff
path: root/accounts/gkleen@skadhi/shell
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/gkleen@skadhi/shell')
-rw-r--r--accounts/gkleen@skadhi/shell/quickshell/Services/Brightness.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/accounts/gkleen@skadhi/shell/quickshell/Services/Brightness.qml b/accounts/gkleen@skadhi/shell/quickshell/Services/Brightness.qml
index 2d7b2e01..63edb127 100644
--- a/accounts/gkleen@skadhi/shell/quickshell/Services/Brightness.qml
+++ b/accounts/gkleen@skadhi/shell/quickshell/Services/Brightness.qml
@@ -49,8 +49,8 @@ Singleton {
49 if (typeof prev === 'undefined' || Math.abs(root.currBrightness - prev) < 0.01) 49 if (typeof prev === 'undefined' || Math.abs(root.currBrightness - prev) < 0.01)
50 return; 50 return;
51 51
52 const max = Number(maxFile.text()); 52 const max = Number(maxFile.text()) - deadzone;
53 const actual = Number(currFile.text()); 53 const actual = Number(currFile.text()) - deadzone;
54 let curr = Math.max(0, Math.min(max, Math.pow(root.currBrightness, root.exponent) * max)); 54 let curr = Math.max(0, Math.min(max, Math.pow(root.currBrightness, root.exponent) * max));
55 if (Math.round(curr) == actual && curr < actual) 55 if (Math.round(curr) == actual && curr < actual)
56 curr = Math.max(0, actual - 1); 56 curr = Math.max(0, actual - 1);