From ba74a617ba93ed1aec0a96e580d461f10bbb55da Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Tue, 21 Feb 2012 08:19:37 +0000 Subject: [PATCH] backlight - eina log bitching when no bl exists, fix. SVN revision: 68209 --- src/bin/e_backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/e_backlight.c b/src/bin/e_backlight.c index ab2bb42f3..537ddaad3 100644 --- a/src/bin/e_backlight.c +++ b/src/bin/e_backlight.c @@ -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)