summaryrefslogtreecommitdiff
path: root/src/lib/ecore_evas/ecore_evas_buffer.c
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/lib/ecore_evas/ecore_evas_buffer.c
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/lib/ecore_evas/ecore_evas_buffer.c')
-rw-r--r--src/lib/ecore_evas/ecore_evas_buffer.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/ecore_evas/ecore_evas_buffer.c b/src/lib/ecore_evas/ecore_evas_buffer.c
index dc2331203a..01b33a0edd 100644
--- a/src/lib/ecore_evas/ecore_evas_buffer.c
+++ b/src/lib/ecore_evas/ecore_evas_buffer.c
@@ -107,6 +107,8 @@ _ecore_evas_show(Ecore_Evas *ee)
107 if (bdata->image) return; 107 if (bdata->image) return;
108 if (ee->prop.focused) return; 108 if (ee->prop.focused) return;
109 ee->prop.focused = EINA_TRUE; 109 ee->prop.focused = EINA_TRUE;
110 ee->prop.withdrawn = EINA_FALSE;
111 if (ee->func.fn_state_change) ee->func.fn_state_change(ee);
110 evas_focus_in(ee->evas); 112 evas_focus_in(ee->evas);
111 if (ee->func.fn_focus_in) ee->func.fn_focus_in(ee); 113 if (ee->func.fn_focus_in) ee->func.fn_focus_in(ee);
112} 114}
@@ -430,6 +432,8 @@ _ecore_evas_buffer_cb_show(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EIN
430 Ecore_Evas *ee; 432 Ecore_Evas *ee;
431 433
432 ee = data; 434 ee = data;
435 ee->prop.withdrawn = EINA_FALSE;
436 if (ee->func.fn_state_change) ee->func.fn_state_change(ee);
433 ee->visible = 1; 437 ee->visible = 1;
434 if (ee->func.fn_show) ee->func.fn_show(ee); 438 if (ee->func.fn_show) ee->func.fn_show(ee);
435} 439}
@@ -440,6 +444,8 @@ _ecore_evas_buffer_cb_hide(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EIN
440 Ecore_Evas *ee; 444 Ecore_Evas *ee;
441 445
442 ee = data; 446 ee = data;
447 ee->prop.withdrawn = EINA_TRUE;
448 if (ee->func.fn_state_change) ee->func.fn_state_change(ee);
443 ee->visible = 0; 449 ee->visible = 0;
444 if (ee->func.fn_hide) ee->func.fn_hide(ee); 450 if (ee->func.fn_hide) ee->func.fn_hide(ee);
445} 451}
@@ -790,7 +796,7 @@ ecore_evas_object_image_new(Ecore_Evas *ee_target)
790 ee->prop.override = EINA_TRUE; 796 ee->prop.override = EINA_TRUE;
791 ee->prop.maximized = EINA_FALSE; 797 ee->prop.maximized = EINA_FALSE;
792 ee->prop.fullscreen = EINA_FALSE; 798 ee->prop.fullscreen = EINA_FALSE;
793 ee->prop.withdrawn = EINA_FALSE; 799 ee->prop.withdrawn = EINA_TRUE;
794 ee->prop.sticky = EINA_FALSE; 800 ee->prop.sticky = EINA_FALSE;
795 801
796 /* init evas here */ 802 /* init evas here */