|
|
|
@ -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); |
|
|
|
|
} |
|
|
|
|