block backlight changing for nested/buffer compositors

This commit is contained in:
Mike Blumenkrantz 2017-02-24 14:15:42 -05:00
parent c854f142dc
commit 18b452778a
1 changed files with 6 additions and 0 deletions

View File

@ -121,6 +121,9 @@ e_backlight_level_set(E_Zone *zone, double val, double tim)
// set backlight associated with zone to val over period of tim
// if tim == 0.0 - then do it instantnly, if time == -1 use some default
// transition time
if (eina_streq(ecore_evas_engine_name_get(e_comp->ee), "buffer") ||
strstr(ecore_evas_engine_name_get(e_comp->ee), "wayland"))
return;
if (val < 0.0) val = 0.0;
else if (val > 1.0)
val = 1.0;
@ -165,6 +168,9 @@ e_backlight_mode_set(E_Zone *zone, E_Backlight_Mode mode)
// zone == NULL == everything
if (e_config->backlight.mode == mode) return;
if (eina_streq(ecore_evas_engine_name_get(e_comp->ee), "buffer") ||
strstr(ecore_evas_engine_name_get(e_comp->ee), "wayland"))
return;
pmode = e_config->backlight.mode;
e_config->backlight.mode = mode;
if (e_config->backlight.mode == E_BACKLIGHT_MODE_NORMAL)