forked from enlightenment/enlightenment
prefer eeze backlight setting over randr: more accurate
supposedly fixes ticket #1015 (yakov ping me if this is somehow not fixing it) SVN revision: 73526
This commit is contained in:
parent
2217325bd1
commit
3e3a13657f
|
@ -298,6 +298,15 @@ _e_backlight_update(E_Zone *zone)
|
|||
int num = 0;
|
||||
|
||||
root = zone->container->manager->root;
|
||||
#ifdef HAVE_EEZE
|
||||
_bl_sys_find();
|
||||
if (bl_sysval)
|
||||
{
|
||||
sysmode = MODE_SYS;
|
||||
_bl_sys_level_get();
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
// try randr
|
||||
out = ecore_x_randr_window_outputs_get(root, &num);
|
||||
if ((out) && (num > 0) && (ecore_x_randr_output_backlight_available()))
|
||||
|
@ -308,17 +317,6 @@ _e_backlight_update(E_Zone *zone)
|
|||
bl_val = x_bl;
|
||||
sysmode = MODE_RANDR;
|
||||
}
|
||||
#ifdef HAVE_EEZE
|
||||
else
|
||||
{
|
||||
_bl_sys_find();
|
||||
if (bl_sysval)
|
||||
{
|
||||
sysmode = MODE_SYS;
|
||||
_bl_sys_level_get();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue