Win: fix modal feature during window closing

During window deletion, decreasing modality depends on
the window visibility.
Because the visibility was set to false before treating the
modality, it was never decreased, leading to never have still
existing windows being reachable.
Now, we check window visibility before it is modified.

@fix
This commit is contained in:
Daniel Zaoui 2016-11-17 07:54:36 +02:00
parent 53dd596f43
commit 7d127c1d07
1 changed files with 1 additions and 1 deletions

View File

@ -2196,7 +2196,6 @@ _efl_ui_win_hide(Eo *obj, Efl_Ui_Win_Data *sd)
}
_elm_win_state_eval_queue();
efl_gfx_visible_set(efl_super(obj, MY_CLASS), EINA_FALSE);
if ((sd->modal) && (evas_object_visible_get(obj)))
{
@ -2205,6 +2204,7 @@ _efl_ui_win_hide(Eo *obj, Efl_Ui_Win_Data *sd)
DECREMENT_MODALITY()
}
efl_gfx_visible_set(efl_super(obj, MY_CLASS), EINA_FALSE);
TRAP(sd, hide);
if (sd->frame_obj)