crash in action_find_or_start when focus on empty spot
This commit is contained in:
4
action.c
4
action.c
@@ -91,7 +91,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 && !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);
|
exec_cmd(class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -148,4 +148,4 @@ void action_maximize_horz(void *data, int num, Client *cli)
|
|||||||
if (!cli) return;
|
if (!cli) return;
|
||||||
cli->maxh = client_toggle_state(cli, atoms[_NET_WM_STATE_MAXIMIZE_HORZ]);
|
cli->maxh = client_toggle_state(cli, atoms[_NET_WM_STATE_MAXIMIZE_HORZ]);
|
||||||
client_place_spot(cli, cli->spot, cli->monitor, 1);
|
client_place_spot(cli, cli->spot, cli->monitor, 1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user