do not warp to clients marked 'ignore'; from chneukirchen at gmail - thanks.

(with the manpage bit from me).

ok oga@
This commit is contained in:
okan 2010-09-25 20:04:55 +00:00
parent 2d66003e4b
commit dee6ac5b7d

View File

@ -76,6 +76,7 @@ xev_handle_maprequest(XEvent *ee)
XMapRequestEvent *e = &ee->xmaprequest;
struct client_ctx *cc = NULL, *old_cc;
XWindowAttributes xattr;
struct winmatch *wm;
if ((old_cc = client_current()) != NULL)
client_ptrsave(old_cc);
@ -85,6 +86,11 @@ xev_handle_maprequest(XEvent *ee)
cc = client_new(e->window, screen_fromroot(xattr.root), 1);
}
TAILQ_FOREACH(wm, &Conf.ignoreq, entry) {
if (strncasecmp(wm->title, cc->name, strlen(wm->title)) == 0)
return;
}
client_ptrwarp(cc);
}