The code makes sense on Mobile/TV where the application always occupies
the whole screen. In case of desktop where mutiple windows can be seen
at the same time, not so much. After the patch whenever the window is
unfocused its content disappears.
Reviewed by: Antonio Gomes, Kamil Klimek, SeungSeop Park, arno renevier
Change-Id: I021b09543d5143e8ed91c9a362d7ce4e16727a61
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
return EINA_FALSE;
}
+#if defined(OS_TIZEN)
void _cb_was_shown(void *data, Evas *obj, void *event_info)
{
handleEvasObjectShow(static_cast<Evas_Object*>(data));
{
handleEvasObjectHide(static_cast<Evas_Object*>(data));
}
+#endif
} // namespace
sd->priv = new EwkViewImpl(view);
view->Initialize();
+#if defined(OS_TIZEN)
// set callbacks to handle application presence/absence on screen
evas_event_callback_add(canvas, EVAS_CALLBACK_CANVAS_FOCUS_IN, _cb_was_shown, wv_evas_object);
evas_event_callback_add(canvas, EVAS_CALLBACK_CANVAS_FOCUS_OUT, _cb_was_hidden, wv_evas_object);
+#endif
return wv_evas_object;
}