forked from enlightenment/efl
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:
parent
53dd596f43
commit
7d127c1d07
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue