On Sun, 10 Apr 2016 08:33:19 -0700 Carsten Holtkamp
<carsten-holtk...@t-online.de> said:

this smells wrong. resizing AFTER a show...

definitely show LAST that's important to ensure sizing is done before the wm
sees the window and the window doesnt size AFTERWARDS so it gets mis-placed
because sizes was AxB when shown then expands to CxD a little bit later. race
condition. sometimes you may be lucky and it just so happens that the sizing
sneaks through... sometimes you are not.

> ajwillia-ms pushed a commit to branch master.
> 
> http://git.enlightenment.org/tools/edi.git/commit/?id=803184016adfedb421a3bc483b1c8e3c4a448f4c
> 
> commit 803184016adfedb421a3bc483b1c8e3c4a448f4c
> Author: Carsten Holtkamp <carsten-holtk...@t-online.de>
> Date:   Sun Apr 10 16:33:01 2016 +0100
> 
>     Opens welcome screen now under mouse, to follow enlightenments policy.
> Evas is picky about function call order.
> ---
>  src/bin/screens/edi_welcome.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/src/bin/screens/edi_welcome.c b/src/bin/screens/edi_welcome.c
> index b0ad461..027a2d5 100644
> --- a/src/bin/screens/edi_welcome.c
> +++ b/src/bin/screens/edi_welcome.c
> @@ -455,9 +455,6 @@ Evas_Object *edi_welcome_show()
>     elm_box_pack_end(box, button);
>     evas_object_show(button);
>  
> -   evas_object_resize(win, 480 * elm_config_scale_get(), 260 *
> elm_config_scale_get());
> -   evas_object_show(win);
> -
>     item = elm_naviframe_item_push(naviframe,
>                                  "Choose Project",
>                                  NULL,
> @@ -466,6 +463,8 @@ Evas_Object *edi_welcome_show()
>                                  NULL);
>  
>     elm_naviframe_item_title_enabled_set(item, EINA_FALSE, EINA_FALSE);
> +   evas_object_show(win);
> +   evas_object_resize(win, 480 * elm_config_scale_get(), 260 *
> elm_config_scale_get()); 
>     return win;
>  }
> 
> -- 
> 
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to