From 019b6641a3b2da5a69d9b68c750599527db8c072 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sun, 9 Aug 2015 00:22:16 +0900 Subject: [PATCH] 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). --- src/bin/e_randr2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/e_randr2.c b/src/bin/e_randr2.c index 078748fcb..c1f6e5fe2 100644 --- a/src/bin/e_randr2.c +++ b/src/bin/e_randr2.c @@ -429,7 +429,7 @@ _config_apply(E_Randr2 *r, E_Config_Randr2 *cfg) printf("RRR: ... priority = %i\n", cs->priority); _config_really_apply(s, cs); } - else if (!cs) + else if ((!cs) && (!_screen_closed(s))) { printf("RRR: ... no config found...\n"); cs2 = NULL; @@ -872,7 +872,7 @@ _screen_config_do(E_Randr2_Screen *s) Eina_List *cloneset; printf("RRR: screen do '%s'\n", s->info.name); - if (_config_do_recurse > 20) + if (_config_do_recurse > 5) { ERR("screen config loop!"); return;