diff options
author | Arwed Meyer <[email protected]> | 2024-10-03 14:49:09 +0200 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2025-09-26 15:50:40 +0000 |
commit | 55cd3c20158f71067a60c75c534df42760a8f762 (patch) | |
tree | dafc062a61928af14976ca40ad9600fb83c004fd /src/gpm-session.h | |
parent | c8c63217d6244b62ddc68157b5f0bda1a35da110 (diff) | |
download | mate-power-manager-55cd3c20158f71067a60c75c534df42760a8f762.tar.bz2 mate-power-manager-55cd3c20158f71067a60c75c534df42760a8f762.tar.xz |
Refactor: kbd_backlight: Backlight toggling
This improves the fix for backlight toggling from "Keyboard backlight
handling improvements".
Now saved_brightness is initilized to 0 and only gets set to current
brightness when "toggling off" - which is the only place where setting
saved_brightness to current brightness makes any sense, logically. In
all other cases it's not needed.
I adapted the code that would crank up the brightness to 100 if we
"toggle on" to 0 although the "arbitrary" special handling introduced
by that is what I personally would consider broken.
Diffstat (limited to 'src/gpm-session.h')
0 files changed, 0 insertions, 0 deletions