leavenotify also don't needs the check 201c56f6
Anselm R. Garbe · 2007-01-19 15:05 1 file(s) · +2 −5
event.c +2 −5
234 234
		focus(c);
235 235
	else if(ev->window == root) {
236 236
		issel = True;
237 -
		XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
238 -
		if(sel)
239 -
			focus(sel);
237 +
		focus(sel);
240 238
	}
241 239
}
242 240
273 271
	XCrossingEvent *ev = &e->xcrossing;
274 272
275 273
	if((ev->window == root) && !ev->same_screen) {
276 -
		if(sel)
277 -
			focus(NULL);
274 +
		focus(NULL);
278 275
		issel = False;
279 276
	}
280 277
}