forked from enlightenment/enlightenment
e - randr - handle lid close screen turnoff correctly again
this USED to work until i made things like auto-clone work without config and so on and that broke turning off closed lid screens. it also works when i suspend while lid is closed and resume (i can only test with lid open as i need to open lid to unsuspend).
This commit is contained in:
parent
8e211f1950
commit
019b6641a3
|
@ -429,7 +429,7 @@ _config_apply(E_Randr2 *r, E_Config_Randr2 *cfg)
|
||||||
printf("RRR: ... priority = %i\n", cs->priority);
|
printf("RRR: ... priority = %i\n", cs->priority);
|
||||||
_config_really_apply(s, cs);
|
_config_really_apply(s, cs);
|
||||||
}
|
}
|
||||||
else if (!cs)
|
else if ((!cs) && (!_screen_closed(s)))
|
||||||
{
|
{
|
||||||
printf("RRR: ... no config found...\n");
|
printf("RRR: ... no config found...\n");
|
||||||
cs2 = NULL;
|
cs2 = NULL;
|
||||||
|
@ -872,7 +872,7 @@ _screen_config_do(E_Randr2_Screen *s)
|
||||||
Eina_List *cloneset;
|
Eina_List *cloneset;
|
||||||
|
|
||||||
printf("RRR: screen do '%s'\n", s->info.name);
|
printf("RRR: screen do '%s'\n", s->info.name);
|
||||||
if (_config_do_recurse > 20)
|
if (_config_do_recurse > 5)
|
||||||
{
|
{
|
||||||
ERR("screen config loop!");
|
ERR("screen config loop!");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue