Commit ba35e997 authored by verdre's avatar verdre Committed by Florian Müllner

media-keys: Divide keyboard brightness value by 100

Since the OSD in the shell changed [1] to using float values from 0.0 to
1.0, send a double instead of a percentage via DBus.

[1] gnome-shell!385
parent af974a0a
Pipeline #114836 passed with stages
in 4 minutes and 13 seconds
......@@ -3718,7 +3718,7 @@ power_keyboard_proxy_signal_cb (GDBusProxy *proxy,
if (g_strcmp0 (source, "internal") != 0)
return;
show_osd (manager, "keyboard-brightness-symbolic", NULL, brightness, NULL);
show_osd (manager, "keyboard-brightness-symbolic", NULL, (double) brightness / 100.0, NULL);
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment