forked from enlightenment/enlightenment
Luncher: Add preview windows to the popup on exec if they are already visible.
This commit is contained in:
parent
49c3b1ab9b
commit
d7f22721a2
|
@ -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))
|
if (!eina_list_data_find(ic->execs, ex))
|
||||||
ic->execs = eina_list_append(ic->execs, ex);
|
ic->execs = eina_list_append(ic->execs, ex);
|
||||||
evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_SHOW,
|
if (evas_object_visible_get(ec->frame))
|
||||||
_bar_exec_new_show, ic);
|
_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
|
else
|
||||||
{
|
{
|
||||||
if (!eina_list_data_find(ic->clients, ec))
|
if (!eina_list_data_find(ic->clients, ec))
|
||||||
ic->clients = eina_list_append(ic->clients, ec);
|
ic->clients = eina_list_append(ic->clients, ec);
|
||||||
evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_SHOW,
|
if (evas_object_visible_get(ec->frame))
|
||||||
_bar_exec_new_show, ic);
|
_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
|
else
|
||||||
|
|
Loading…
Reference in New Issue