Luncher: Add preview windows to the popup on exec if they are already visible.

This commit is contained in:
Stephen 'Okra' Houston 2016-12-14 10:23:25 -06:00
parent 49c3b1ab9b
commit d7f22721a2
1 changed files with 10 additions and 4 deletions

View File

@ -1298,15 +1298,21 @@ _bar_cb_exec_new(void *data EINA_UNUSED, int type, E_Exec_Instance *ex)
{
if (!eina_list_data_find(ic->execs, ex))
ic->execs = eina_list_append(ic->execs, ex);
evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_SHOW,
_bar_exec_new_show, ic);
if (evas_object_visible_get(ec->frame))
_bar_exec_new_show(ic, NULL, NULL, NULL);
else
evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_SHOW,
_bar_exec_new_show, ic);
}
else
{
if (!eina_list_data_find(ic->clients, ec))
ic->clients = eina_list_append(ic->clients, ec);
evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_SHOW,
_bar_exec_new_show, ic);
if (evas_object_visible_get(ec->frame))
_bar_exec_new_show(ic, NULL, NULL, NULL);
else
evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_SHOW,
_bar_exec_new_show, ic);
}
}
else