e-modules/engage: only start scale windows when there is more than one of same class
SVN revision: 84504
This commit is contained in:
parent
e8ad369fa1
commit
c304e576d0
|
@ -761,9 +761,19 @@ _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…
Reference in New Issue