ecore/ecore_x - show the window if the window should be visible.

when the window alpha mode is changed, the x window is re-created.
but if the window is going on the show state(not visible yet but waiting for visible from xserver) this window never be visible.
so here it make the window visible also if the window is going on the visible state.
This commit is contained in:
ChunEon Park 2013-12-17 20:37:17 +09:00
parent 0a1cc79a91
commit 0947bae126
1 changed files with 4 additions and 2 deletions

View File

@ -2314,7 +2314,8 @@ _alpha_do(Ecore_Evas *ee, int alpha)
(Ecore_Event_Multi_Up_Cb)_ecore_evas_mouse_multi_up_process);
if (ee->prop.borderless)
ecore_x_mwm_borderless_set(ee->prop.window, ee->prop.borderless);
if (ee->visible) ecore_x_window_show(ee->prop.window);
if (ee->visible || ee->should_be_visible)
ecore_x_window_show(ee->prop.window);
if (ee->prop.focused) ecore_x_window_focus(ee->prop.window);
if (ee->prop.title)
{
@ -2461,7 +2462,8 @@ _ecore_evas_x_alpha_set(Ecore_Evas *ee, int alpha)
(Ecore_Event_Multi_Up_Cb)_ecore_evas_mouse_multi_up_process);
if (ee->prop.borderless)
ecore_x_mwm_borderless_set(ee->prop.window, ee->prop.borderless);
if (ee->visible) ecore_x_window_show(ee->prop.window);
if (ee->visible || ee->should_be_visible)
ecore_x_window_show(ee->prop.window);
if (ee->prop.focused) ecore_x_window_focus(ee->prop.window);
if (ee->prop.title)
{