summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines/win32
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-10-29 19:33:16 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-10-29 19:34:33 +0900
commit5954289c6ce1cd55ff212428291604b981438439 (patch)
treee05dfdc882bf91a4e2834b0bac4affee66b3344e /src/modules/ecore_evas/engines/win32
parent251389fefd6df762e9369e5b389c62c4bb1d481f (diff)
ecore_evas - ecore_evas's should start withdrawn then normal on show
this fixes initial state of an ee where you couldn't detect when the window had been accepted by the wm (goes to normal state from withdrawn). @fix
Diffstat (limited to 'src/modules/ecore_evas/engines/win32')
-rw-r--r--src/modules/ecore_evas/engines/win32/ecore_evas_win32.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c b/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c
index 564638c165..88397c7efe 100644
--- a/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c
+++ b/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c
@@ -318,6 +318,8 @@ _ecore_evas_win32_event_window_show(void *data EINA_UNUSED, int type EINA_UNUSED
318 ee = ecore_event_window_match((Ecore_Window)e->window); 318 ee = ecore_event_window_match((Ecore_Window)e->window);
319 if (!ee) return 1; /* pass on event */ 319 if (!ee) return 1; /* pass on event */
320 if ((Ecore_Window)e->window != ee->prop.window) return 1; 320 if ((Ecore_Window)e->window != ee->prop.window) return 1;
321 ee->prop.withdrawn = EINA_FALSE;
322 if (ee->func.fn_state_change) ee->func.fn_state_change(ee);
321 if (ee->visible) return 0; /* dont pass it on */ 323 if (ee->visible) return 0; /* dont pass it on */
322 ee->visible = 1; 324 ee->visible = 1;
323 if (ee->func.fn_show) ee->func.fn_show(ee); 325 if (ee->func.fn_show) ee->func.fn_show(ee);
@@ -337,6 +339,8 @@ _ecore_evas_win32_event_window_hide(void *data EINA_UNUSED, int type EINA_UNUSED
337 ee = ecore_event_window_match((Ecore_Window)e->window); 339 ee = ecore_event_window_match((Ecore_Window)e->window);
338 if (!ee) return 1; /* pass on event */ 340 if (!ee) return 1; /* pass on event */
339 if ((Ecore_Window)e->window != ee->prop.window) return 1; 341 if ((Ecore_Window)e->window != ee->prop.window) return 1;
342 ee->prop.withdrawn = EINA_TRUE;
343 if (ee->func.fn_state_change) ee->func.fn_state_change(ee);
340 if (!ee->visible) return 0; /* dont pass it on */ 344 if (!ee->visible) return 0; /* dont pass it on */
341 ee->visible = 0; 345 ee->visible = 0;
342 if (ee->func.fn_hide) ee->func.fn_hide(ee); 346 if (ee->func.fn_hide) ee->func.fn_hide(ee);
@@ -1307,6 +1311,7 @@ _ecore_evas_win32_new_internal(int (*_ecore_evas_engine_backend_init)(Ecore_Evas
1307 ee->prop.sticky = EINA_FALSE; 1311 ee->prop.sticky = EINA_FALSE;
1308 /* FIXME: sticky to add */ 1312 /* FIXME: sticky to add */
1309 ee->prop.window = 0; 1313 ee->prop.window = 0;
1314 ee->prop.withdrawn = EINA_TRUE;
1310 1315
1311 /* init evas here */ 1316 /* init evas here */
1312 ee->evas = evas_new(); 1317 ee->evas = evas_new();