applied Jukkas patch 39ae2868
Anselm R. Garbe · 2007-05-30 08:57 2 file(s) · +2 −2
client.c +1 −1
131 131
132 132
void
133 133
focus(Client *c) {
134 -
	if( !c && selscreen || c && !isvisible(c))
134 +
	if((!c && selscreen)|| (c && !isvisible(c)))
135 135
		for(c = stack; c && !isvisible(c); c = c->snext);
136 136
	if(sel && sel != c) {
137 137
		grabbuttons(sel, False);
event.c +1 −1
244 244
245 245
	if(ev->mode != NotifyNormal || ev->detail == NotifyInferior)
246 246
		return;
247 -
	if(c = getclient(ev->window))
247 +
	if((c = getclient(ev->window)))
248 248
		focus(c);
249 249
	else if(ev->window == root) {
250 250
		selscreen = True;