Avoid making lots of DBus calls to set the brightness when the slider changes
too quickly https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/805473
This commit is contained in:
parent
b2be7a7b4c
commit
9132f8f2f8
1 changed files with 3 additions and 0 deletions
|
@ -221,6 +221,9 @@ brightness_slider_value_changed_cb (GtkRange *range, gpointer user_data)
|
|||
CcScreenPanelPrivate *priv = CC_SCREEN_PANEL (user_data)->priv;
|
||||
|
||||
/* do not loop */
|
||||
if (priv->setting_brightness)
|
||||
return;
|
||||
|
||||
priv->setting_brightness = TRUE;
|
||||
|
||||
/* push this to g-p-m */
|
||||
|
|
Loading…
Add table
Reference in a new issue