raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=019b6641a3b2da5a69d9b68c750599527db8c072

commit 019b6641a3b2da5a69d9b68c750599527db8c072
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Sun Aug 9 00:22:16 2015 +0900

    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 078748f..c1f6e5f 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;

-- 


Reply via email to