summaryrefslogtreecommitdiff
path: root/src/gpm-self-test.c
diff options
context:
space:
mode:
authorArwed Meyer <[email protected]>2024-10-03 14:49:09 +0200
committerVictor Kareh <[email protected]>2025-09-26 15:50:40 +0000
commit55cd3c20158f71067a60c75c534df42760a8f762 (patch)
treedafc062a61928af14976ca40ad9600fb83c004fd /src/gpm-self-test.c
parentc8c63217d6244b62ddc68157b5f0bda1a35da110 (diff)
downloadmate-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-self-test.c')
0 files changed, 0 insertions, 0 deletions