[EXTN_GL] skip iconify callback when extn typs is SHM 80/131980/1
authorsunghyun kim <scholb.kim@samsung.com>
Wed, 31 May 2017 11:16:23 +0000 (20:16 +0900)
committersunghyun kim <scholb.kim@samsung.com>
Wed, 31 May 2017 11:16:23 +0000 (20:16 +0900)
check extn type before check prop.window.
in 64bit emulator, it has some problem.

Change-Id: I157866466dbd10f6e48ffda4c0970b83b3b5bb6f

src/modules/ecore_evas/engines/extn/ecore_evas_extn.c

index dae823a..c215abb 100644 (file)
@@ -1109,20 +1109,19 @@ _ecore_evas_plug_cb_window_iconify_change(void *data, int type EINA_UNUSED, void
    Ecore_Wl_Event_Window_Iconify_State_Change *ev;
    Ecore_Evas_Engine_Buffer_Data *bdata;
 
-   ev = event;
-   ee = ecore_event_window_match(ev->win);
-
-   if (!ee) return ECORE_CALLBACK_PASS_ON;
-   if (ev->win != ee->prop.window) return ECORE_CALLBACK_PASS_ON;
-
    ee2 = data;
    bdata = ee2->engine.extn.data;
    if(!bdata) return ECORE_CALLBACK_PASS_ON;
 
    extn = bdata->data;
-
    if(extn->extn_type_client == EXTN_TYPE_SHM) return ECORE_CALLBACK_PASS_ON;
 
+   ev = event;
+   ee = ecore_event_window_match(ev->win);
+
+   if (!ee) return ECORE_CALLBACK_PASS_ON;
+   if (ev->win != ee->prop.window) return ECORE_CALLBACK_PASS_ON;
+
    if(extn->tizen_rs)
      {
         if(ee->prop.iconified && pre_buffer)