summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines/sdl
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/sdl
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/sdl')
-rw-r--r--src/modules/ecore_evas/engines/sdl/ecore_evas_sdl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/ecore_evas/engines/sdl/ecore_evas_sdl.c b/src/modules/ecore_evas/engines/sdl/ecore_evas_sdl.c
index 218eab0f06..4ffbf3d02e 100644
--- a/src/modules/ecore_evas/engines/sdl/ecore_evas_sdl.c
+++ b/src/modules/ecore_evas/engines/sdl/ecore_evas_sdl.c
@@ -387,6 +387,8 @@ _ecore_evas_move_resize(Ecore_Evas *ee, int x, int y, int w, int h)
387static void 387static void
388_ecore_evas_show(Ecore_Evas *ee) 388_ecore_evas_show(Ecore_Evas *ee)
389{ 389{
390 ee->prop.withdrawn = EINA_FALSE;
391 if (ee->func.fn_state_change) ee->func.fn_state_change(ee);
390 if (ee->prop.focused) return; 392 if (ee->prop.focused) return;
391 ee->prop.focused = EINA_TRUE; 393 ee->prop.focused = EINA_TRUE;
392 evas_event_feed_mouse_in(ee->evas, (unsigned int)((unsigned long long)(ecore_time_get() * 1000.0) & 0xffffffff), NULL); 394 evas_event_feed_mouse_in(ee->evas, (unsigned int)((unsigned long long)(ecore_time_get() * 1000.0) & 0xffffffff), NULL);
@@ -568,7 +570,7 @@ _ecore_evas_internal_sdl_new(int rmethod, const char* name, int w, int h, int fu
568 ee->prop.override = EINA_TRUE; 570 ee->prop.override = EINA_TRUE;
569 ee->prop.maximized = EINA_TRUE; 571 ee->prop.maximized = EINA_TRUE;
570 ee->prop.fullscreen = fullscreen; 572 ee->prop.fullscreen = fullscreen;
571 ee->prop.withdrawn = EINA_FALSE; 573 ee->prop.withdrawn = EINA_TRUE;
572 ee->prop.sticky = EINA_FALSE; 574 ee->prop.sticky = EINA_FALSE;
573 ee->prop.window = 0; 575 ee->prop.window = 0;
574 ee->alpha = alpha; 576 ee->alpha = alpha;