Browse Source

e-modules/engage: only start scale windows when there is more than one of same class

SVN revision: 84504
master
Hannes Janetzek 9 years ago committed by Tom Hacohen
parent
commit
c304e576d0
  1. 14
      src/ng_taskbar.c

14
src/ng_taskbar.c

@ -761,10 +761,20 @@ _item_cb_mouse_up(Ngi_Item *item, Ecore_Event_Mouse_Button *ev)
{
char buf[1024];
E_Action *act = e_action_find("scale-windows");
Eina_List *l;
Ngi_Item_Taskbar *l_it;
int cnt = 0;
if (!act) return;
if (!bd->client.icccm.class) return;
if (!it->class) return;
EINA_LIST_FOREACH(it->base.box->items, l, l_it)
if (l_it->class == it->class)
cnt++;
if (cnt < 2)
return;
snprintf(buf, 1024, "go_scale_class:%s", bd->client.icccm.class);
act->func.go(NULL, buf);
}

Loading…
Cancel
Save