e_comp_wl_shell: check ec->bg_state flag before sending pre-unobscured visibility... 68/225868/4 accepted/tizen/unified/20200305.051113 submit/tizen/20200304.075907
authorDoyoun Kang <doyoun.kang@samsung.com>
Tue, 25 Feb 2020 06:01:16 +0000 (15:01 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Wed, 4 Mar 2020 07:08:08 +0000 (07:08 +0000)
There was a bug that the application state changed to resume state by pre-unobscured event
when using background launching.
So, we changed code not to send pre-unobscured event when the window set the bg_state.

Change-Id: I088621a6b069d925a862afaed438b720df9ae666

src/bin/e_comp_wl_shell.c

index 26be56eb8419e17b27cfc04edf62e2a4080e4e91..16377fdb07a3766d1067cc07328c924796fa3801 100644 (file)
@@ -784,7 +784,7 @@ _e_shell_client_map_common_post(E_Client *ec)
    ec->first_mapped = 1;
 
    e_policy_visibility_client_hide_job_cancel(ec);
-   if (!(ec->iconic && ec->exp_iconify.by_client))
+   if (!(ec->iconic && ec->exp_iconify.by_client) && !ec->bg_state)
      e_vis_client_check_send_pre_visibility_event(ec, EINA_FALSE);
 
    ELOGF("COMP", "Un-Set launching flag", ec);