* Chris Michael <[email protected]> [2013-10-17 10:08:27 -0700]:

> 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

Nice! Thanks a lot, working like a charm now.

>     
>     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)
>         {
> 
> -- 
> 
> 

-- 
Gustavo Lima Chaves
Senior Developer @ Intel - Open Source Technology Center

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to