From de1043ece3044b0e3404694193c27697e5c311e0 Mon Sep 17 00:00:00 2001 From: Sean Pringle Date: Sun, 8 Feb 2015 18:31:45 +1000 Subject: [PATCH] action_find_or_start match WM_CLASS substring --- action.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.c b/action.c index d84fcc2..ed8a62b 100644 --- a/action.c +++ b/action.c @@ -92,7 +92,7 @@ void action_find_or_start(void *data, int num, Client *cli) { int i; Client *c; char *class = data; 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; } exec_cmd(class); }