devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=87dd451353ca26698a6997694047371b5c8301af

commit 87dd451353ca26698a6997694047371b5c8301af
Author: Chris Michael <[email protected]>
Date:   Thu Oct 17 18:05:29 2013 +0100

    Fix Phab Ticket T433 for Glima where you could not disable a laptop panel
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/bin/e_randr.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_randr.c b/src/bin/e_randr.c
index 99653d8..2964c22 100644
--- a/src/bin/e_randr.c
+++ b/src/bin/e_randr.c
@@ -690,6 +690,7 @@ _e_randr_event_cb_output_change(void *data EINA_UNUSED, int 
type EINA_UNUSED, vo
    Eina_Bool output_found = EINA_FALSE;
    Eina_Bool output_changed = EINA_FALSE;
    Eina_Bool output_removed = EINA_FALSE;
+   Eina_Bool skip_output = EINA_FALSE;
 
    ev = event;
 
@@ -776,6 +777,11 @@ _e_randr_event_cb_output_change(void *data EINA_UNUSED, 
int type EINA_UNUSED, vo
             else if (ev->crtc == 0)
               {
                   printf("\t\t\t\tOutput Has No Crtc Assigned\n");
+                  if (!crtc_cfg->mode) 
+                    {
+                       output_found = EINA_TRUE;
+                       skip_output = EINA_TRUE;
+                    }
               }
 
              if (output_found) break;
@@ -974,7 +980,7 @@ _e_randr_event_cb_output_change(void *data EINA_UNUSED, int 
type EINA_UNUSED, vo
               printf("NO MAIN OUTPUT CONFIG TO CLONE TO !!!\n");
           }
      }
-   else if ((output_found) && (ev->crtc == 0))
+   else if ((output_found) && (ev->crtc == 0) && (!skip_output))
      {
        if (ev->connection == 0)
          {

-- 


Reply via email to