Added last_sent_type for store latest iconify_state_change event.
and send iconify_state_change event when ec turn to visibility on and didn't send the event.
Change-Id: I74c33b4ade57c095c2287273d54a4ae1237666c2
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
unsigned char skip_by_remote : 1; // skip iconify by remote surface client
unsigned char deiconify_update : 1; // wait client render if deiconify_update is 1
unsigned char buffer_flush : 1; // 0: no flush, 1: flush buffer when iconify
+ unsigned char last_sent_iconic : 1; // 0: uniconify, 1: iconify
} exp_iconify;
struct
if (ec->visibility.obscured == E_VISIBILITY_UNOBSCURED)
{
e_policy_client_uniconify_by_visibility(ec);
+ if ((ec->iconic == 0) && (ec->exp_iconify.last_sent_iconic != 0))
+ e_policy_wl_iconify_state_change_send(ec, 0);
if (ec->visibility.last_sent_type != E_VISIBILITY_PRE_UNOBSCURED)
{
ELOGF("POL_VIS", "SEND pre-unobscured visibility event", ec);
"SEND |iconic:%d |argb:%d |sur:%p",
ec,
iconic, ec->argb, psurf->surf);
+ ec->exp_iconify.last_sent_iconic = iconic;
break;
}
eina_iterator_free(it);