discomfitor pushed a commit to branch efl-1.15.

http://git.enlightenment.org/core/efl.git/commit/?id=45f5eb98d0ae24ac2f88a32b5422f3dc0a4ea650

commit 45f5eb98d0ae24ac2f88a32b5422f3dc0a4ea650
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri Sep 25 22:21:25 2015 -0400

    ecore_evas-x11: unset withdrawn flag when showing the ecore evas
    
    while the window map event seemed like a reasonable place to unset
    the withdrawn state at the time, studies and further tests have proven
    that the direct show callback is even more reasonable and effective
    
    ref T2745
---
 src/modules/ecore_evas/engines/x/ecore_evas_x.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/modules/ecore_evas/engines/x/ecore_evas_x.c 
b/src/modules/ecore_evas/engines/x/ecore_evas_x.c
index 465d8f5..b756461 100644
--- a/src/modules/ecore_evas/engines/x/ecore_evas_x.c
+++ b/src/modules/ecore_evas/engines/x/ecore_evas_x.c
@@ -1706,12 +1706,6 @@ _ecore_evas_x_event_window_show(void *data EINA_UNUSED, 
int type EINA_UNUSED, vo
      }
    if ((first_map_bug) && (!strcmp(ee->driver, "opengl_x11")))
      evas_damage_rectangle_add(ee->evas, 0, 0, ee->w, ee->h);
-   if (ee->prop.withdrawn)
-     {
-        ee->prop.withdrawn = EINA_FALSE;
-        if (ee->func.fn_state_change) ee->func.fn_state_change(ee);
-        _ecore_evas_x_hints_update(ee);
-     }
    if (ee->visible) return ECORE_CALLBACK_PASS_ON;
 //   if (ee->visible) return ECORE_CALLBACK_DONE;
 //   printf("SHOW EVENT %p\n", ee);
@@ -2924,6 +2918,12 @@ _ecore_evas_x_show(Ecore_Evas *ee)
    ecore_x_window_show(ee->prop.window);
    if (ee->prop.fullscreen)
      ecore_x_window_focus(ee->prop.window);
+   if (ee->prop.withdrawn)
+     {
+        ee->prop.withdrawn = EINA_FALSE;
+        if (ee->func.fn_state_change) ee->func.fn_state_change(ee);
+        _ecore_evas_x_hints_update(ee);
+     }
 }
 
 static void

-- 


Reply via email to