only update e_bl_val directly in backlight_level_set if not using randr backlight

this is the "real" backlight value, so it needs to always be accurate. since randr backlight sets this value elsewhere, only use those real updates to ensure genuine values
This commit is contained in:
Mike Blumenkrantz 2014-05-07 15:26:42 -04:00
parent 787ca774de
commit 572760ae0e
1 changed files with 4 additions and 1 deletions

View File

@ -125,7 +125,10 @@ e_backlight_level_set(E_Zone *zone, double val, double tim)
if (!zone) zone = e_util_zone_current_get(e_manager_current_get());
ecore_event_add(E_EVENT_BACKLIGHT_CHANGE, NULL, NULL, NULL);
bl_now = e_bl_val;
e_bl_val = val;
if (sysmode != MODE_RANDR)
e_bl_val = val;
if (fabs(tim) < DBL_EPSILON)
{
_e_backlight_set(zone, val);