wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit b10ede6590851c77bf66557be5927ba8c425b40a
parent 3a67df49e6370257c59222e92cafd0cace60547f
Author: Kris Maglione <jg@suckless.org>
Date:   Tue, 20 Feb 2007 23:49:36 -0500

Fixed a bug where focus reverted to None when the last client of a tag was XKilled

Diffstat:
event.c | 6++++++
fs.c | 2+-
2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/event.c b/event.c @@ -291,6 +291,12 @@ focusin(XEvent *e) { Client *c, *old; XFocusChangeEvent *ev = &e->xfocus; + /* Yes, we're focusing in on nothing, here. */ + if(ev->detail == NotifyDetailNone) { + XSetInputFocus(blz.dpy, screen->barwin, RevertToParent, CurrentTime); + return; + } + if(!((ev->detail == NotifyNonlinear) ||(ev->detail == NotifyNonlinearVirtual) ||(ev->detail == NotifyInferior) diff --git a/fs.c b/fs.c @@ -786,7 +786,7 @@ fs_write(P9Req *r) { respond(r, nil); return; } - /* This is an assert because it should this should not be called if + /* This is an assert because this function should not be called if * the file is not open for writing. */ assert(!"Write called on an unwritable file"); }