action_find_or_start match WM_CLASS substring

This commit is contained in:
Sean Pringle
2015-02-08 18:31:45 +10:00
parent 62136f2977
commit de1043ece3

View File

@@ -92,7 +92,7 @@ void action_find_or_start(void *data, int num, Client *cli)
{ {
int i; Client *c; char *class = data; int i; Client *c; char *class = data;
for_windows(i, c) for_windows(i, c)
if (c->visible && c->manage && c->class && !strcasecmp(c->class, class)) if (c->visible && c->manage && c->class && strcasestr(c->class, class))
{ client_activate(c); spot_warp_pointer(c->spot, c->monitor); return; } { client_activate(c); spot_warp_pointer(c->spot, c->monitor); return; }
exec_cmd(class); exec_cmd(class);
} }