backlight - eina log bitching when no bl exists, fix.

SVN revision: 68209
This commit is contained in:
Carsten Haitzler 2012-02-21 08:19:37 +00:00
parent 32ac589897
commit ba74a617ba
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ _e_backlight_update(E_Zone *zone)
root = zone->container->manager->root;
// try randr
out = ecore_x_randr_window_outputs_get(root, &num);
if ((out) && (num > 0))
if ((out) && (num > 0) && (ecore_x_randr_output_backlight_available()))
x_bl = ecore_x_randr_output_backlight_level_get(root, out[0]);
if (out) free(out);
if (x_bl >= 0.0)