when clicking an ibar icon for a non-order icon that has only one window, activate the window

T375
This commit is contained in:
discomfitor 2013-09-20 15:08:06 +01:00
parent bb1f5f9fdb
commit f7e8dee23c
1 changed files with 20 additions and 1 deletions

View File

@ -1393,7 +1393,26 @@ _ibar_icon_go(IBar_Icon *ic, Eina_Bool keep_going)
{
if (ic->not_in_order)
{
ecore_job_add((Ecore_Cb)_ibar_cb_icon_menu_cb, ic);
Eina_List *l, *ll;
E_Exec_Instance *exe;
E_Border *bd, *bdlast = NULL;
unsigned int count = 0;
EINA_LIST_FOREACH(ic->exes, l, exe)
{
EINA_LIST_FOREACH(exe->borders, ll, bd)
{
count++;
if (count > 1)
{
ecore_job_add((Ecore_Cb)_ibar_cb_icon_menu_cb, ic);
return;
}
bdlast = bd;
}
}
if (bdlast)
e_border_activate(bdlast, 1);
return;
}
if (ic->app->type == EFREET_DESKTOP_TYPE_APPLICATION)