summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <m.blumenkran@samsung.com>2013-08-20 10:03:39 +0100
committerMike Blumenkrantz <m.blumenkran@samsung.com>2013-10-28 13:23:31 +0000
commit9645b31d8696b760ca014e7b5e47bc3f89bf781e (patch)
tree98fd6d48fc213d55b31398eea8174627042b5a20
parent1210d6d9543b8da6d6707274d514263e73bcc92f (diff)
downloadenlightenment-9645b31d8696b760ca014e7b5e47bc3f89bf781e.tar.gz
nosquash: make backlight wayland-friendly
-rw-r--r--src/bin/e_backlight.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bin/e_backlight.c b/src/bin/e_backlight.c
index 2553da73bc..931f0ce545 100644
--- a/src/bin/e_backlight.c
+++ b/src/bin/e_backlight.c
@@ -284,13 +284,14 @@ static void
_e_backlight_update(E_Zone *zone)
{
double x_bl = -1.0;
+#ifndef WAYLAND_ONLY
Ecore_X_Window root;
Ecore_X_Randr_Output *out;
int i, num = 0;
root = zone->comp->man->root;
// try randr
- if (ecore_x_randr_output_backlight_available())
+ if (root && ecore_x_randr_output_backlight_available())
{
out = ecore_x_randr_window_outputs_get(root, &num);
if ((out) && (num > 0))
@@ -324,6 +325,7 @@ _e_backlight_update(E_Zone *zone)
sysmode = MODE_RANDR;
return;
}
+#endif
#ifdef HAVE_EEZE
_bl_sys_find();
if (bl_sysval)
@@ -338,6 +340,9 @@ _e_backlight_update(E_Zone *zone)
static void
_e_backlight_set(E_Zone *zone, double val)
{
+#ifdef WAYLAND_ONLY
+ if (0)
+#else
if (sysmode == MODE_RANDR)
{
Ecore_X_Window root;
@@ -372,6 +377,7 @@ _e_backlight_set(E_Zone *zone, double val)
}
free(out);
}
+#endif
#ifdef HAVE_EEZE
else if (sysmode == MODE_SYS)
{