jackdanielz pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=7d127c1d07eae22dddfffa527db2048dd665c12f

commit 7d127c1d07eae22dddfffa527db2048dd665c12f
Author: Daniel Zaoui <daniel.za...@yahoo.com>
Date:   Thu Nov 17 07:54:36 2016 +0200

    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
---
 src/lib/elementary/efl_ui_win.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 8f83f43..03e385d 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -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)

-- 


Reply via email to