From f7e8dee23c1d3ad50f604ff0039dfd1631f66030 Mon Sep 17 00:00:00 2001 From: discomfitor Date: Fri, 20 Sep 2013 15:08:06 +0100 Subject: [PATCH] when clicking an ibar icon for a non-order icon that has only one window, activate the window T375 --- src/modules/ibar/e_mod_main.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/modules/ibar/e_mod_main.c b/src/modules/ibar/e_mod_main.c index 8424fbb..526d75b 100644 --- a/src/modules/ibar/e_mod_main.c +++ b/src/modules/ibar/e_mod_main.c @@ -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) -- 2.7.4