No need to check `mapped` becasue it's also checked in the function,
e_client_hide().
Change-Id: I2e7ae004d77fdde8cad58dc60bad804d750bfbe1
Eina_Bool pixmap_usable = e_pixmap_usable_get(ec->pixmap);
Eina_Bool hide_by_request = e_client_hide_by_request_get(ec);
- /* map or unmap ec */
- if (!pixmap_usable || hide_by_request)
- {
- /* unmap ec */
- if (ec->comp_data->mapped)
- {
- ELOGF("COMP", "Unmap. pixmap_usable:%d", ec, pixmap_usable);
+ ELOGF("COMP", "Update map state. pixmap_usable:%d, hide_by_reuqest:%d",
+ ec, pixmap_usable, hide_by_request);
- e_client_hide(ec);
- }
- }
+ if (pixmap_usable && !hide_by_request)
+ e_client_show(ec);
else
- {
- /* map ec */
- e_client_show(ec);
- }
+ e_client_hide(ec);
}
static void