e_policy_wl: add code to send dpms_wm message before sending visibility change 35/115935/3
authorDoyoun Kang <doyoun.kang@samsung.com>
Wed, 22 Feb 2017 06:05:06 +0000 (15:05 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Wed, 22 Feb 2017 10:10:30 +0000 (19:10 +0900)
There is no way to know the reason why the window is fully-obsucred when an app
get the visibility event.
So, we add code to send the dpms state at that point of the time before sending
visibility event.

Change-Id: Ib0d6631f0647f067bd9c8f6969f67da5b8dff993

src/bin/e_policy_wl.c

index 751fe32c085db9fb9f3596695c4400b8a33466ca..87f2ea49c93f8827d7643481603bfa2369c0256d 100644 (file)
@@ -1090,6 +1090,15 @@ e_policy_wl_visibility_send(E_Client *ec, int vis)
 
           EINA_LIST_FOREACH(psurf->vislist, ll, res_tzvis)
             {
+               // below code is workaround for checking visibility by display off or not
+               if (ec->zone)
+                 {
+                    if (ec->zone->display_state == E_ZONE_DISPLAY_STATE_ON)
+                      e_policy_aux_message_send(ec, "dpms_wm", "on", NULL);
+                    else
+                      e_policy_aux_message_send(ec, "dpms_wm", "off", NULL);
+                 }
+
                tizen_visibility_send_notify(res_tzvis, vis);
                ELOGF("TZVIS",
                      "SEND     |win:0x%08x|res_tzvis:0x%08x|v:%d",