diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2016-10-06 10:41:48 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2016-10-06 11:00:43 +0900 |
commit | 6d469c8c142ec8d8031f3bcaa89205d31b1f58ef (patch) | |
tree | 1966c4a32c0d2b28c67ffedd9af0efa7f623eaf4 | |
parent | e7702f0570a3150befa204b2135342a2bfb06ae0 (diff) | |
download | efl-6d469c8c142ec8d8031f3bcaa89205d31b1f58ef.tar.gz |
ecore_evas x - dont set withdrawn to fals on show but wait for wm state
so we handled override cases and set withdrawn to false on show, but
when normally managed it might be nicer to wait for a state change via
the wm state property to know we are "normal"
this should fix T4699
@fix
-rw-r--r-- | src/modules/ecore_evas/engines/x/ecore_evas_x.c | 10 |
1 files changed, 5 insertions, 5 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 a8226bd099..e50c5ebb54 100644 --- a/src/modules/ecore_evas/engines/x/ecore_evas_x.c +++ b/src/modules/ecore_evas/engines/x/ecore_evas_x.c @@ -2999,15 +2999,15 @@ _ecore_evas_x_show(Ecore_Evas *ee) _ecore_evas_x_render(ee); _ecore_evas_x_sync_set(ee); _ecore_evas_x_window_profile_set(ee); - ecore_x_window_show(ee->prop.window); - if (ee->prop.fullscreen) - ecore_x_window_focus(ee->prop.window); - if (ee->prop.withdrawn) + if (!ee->prop.withdrawn) _ecore_evas_x_hints_update(ee); + else { ee->prop.withdrawn = EINA_FALSE; - if (ee->func.fn_state_change) ee->func.fn_state_change(ee); _ecore_evas_x_hints_update(ee); + ee->prop.withdrawn = EINA_TRUE; } + ecore_x_window_show(ee->prop.window); + if (ee->prop.fullscreen) ecore_x_window_focus(ee->prop.window); } static void |