diff --git a/action.c b/action.c index d0e807a..379df21 100644 --- a/action.c +++ b/action.c @@ -91,7 +91,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)) - { client_activate(c); spot_warp_pointer(cli->spot, cli->monitor); return; } + { client_activate(c); spot_warp_pointer(c->spot, c->monitor); return; } exec_cmd(class); } @@ -148,4 +148,4 @@ void action_maximize_horz(void *data, int num, Client *cli) if (!cli) return; cli->maxh = client_toggle_state(cli, atoms[_NET_WM_STATE_MAXIMIZE_HORZ]); client_place_spot(cli, cli->spot, cli->monitor, 1); -} \ No newline at end of file +}