From 87dd451353ca26698a6997694047371b5c8301af Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Thu, 17 Oct 2013 18:05:29 +0100 Subject: [PATCH] Fix Phab Ticket T433 for Glima where you could not disable a laptop panel Signed-off-by: Chris Michael --- 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 99653d8b9..2964c2246 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) {