From ff0f462f969c4f536082f33fe708dade7131353a Mon Sep 17 00:00:00 2001 From: okan Date: Sat, 25 Sep 2010 20:04:55 +0000 Subject: do not warp to clients marked 'ignore'; from chneukirchen at gmail - thanks. (with the manpage bit from me). ok oga@ --- xevents.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'xevents.c') diff --git a/xevents.c b/xevents.c index 02de6bf..1ff1b58 100644 --- a/xevents.c +++ b/xevents.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: xevents.c,v 1.49 2009/12/15 04:10:42 okan Exp $ + * $Id: xevents.c,v 1.50 2010/09/25 20:04:55 okan Exp $ */ /* @@ -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); } -- cgit v1.2.3-2-gb3c3