e_comp_wl_shell: check iconify by client before sending pre-unobscured event 48/190648/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Thu, 4 Oct 2018 10:35:54 +0000 (19:35 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Thu, 4 Oct 2018 10:35:54 +0000 (19:35 +0900)
There was a bug that the iconic window got the pre-unobscured visibility event when it requested to map window.
In this case, e doesn't send the pre-unobsucred event because its window is in iconic state.

Change-Id: I7d42ef99117c1e07756e4d05ebafe32ba2e6c106

src/bin/e_comp_wl_shell.c

index ce3c5c5348c3a90a885ee7662939d3bb65edf9f3..b250eb2b3841d87ed4078b39ddfed44b4d83ec23 100644 (file)
@@ -754,7 +754,8 @@ _e_shell_client_map_common_post(E_Client *ec)
    ec->first_mapped = 1;
 
    e_policy_visibility_client_hide_job_cancel(ec);
-   e_vis_client_check_send_pre_visibility_event(ec, EINA_FALSE);
+   if (!(ec->iconic && ec->exp_iconify.by_client))
+     e_vis_client_check_send_pre_visibility_event(ec, EINA_FALSE);
 
    ELOGF("COMP", "Un-Set launching flag", ec->pixmap, ec);
    ec->launching = EINA_FALSE;