From dee6ac5b7db3605e1364789001aa2502f0b2d287 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xevents.c b/xevents.c index 22c2afc..f4fca00 100644 --- a/xevents.c +++ b/xevents.c @@ -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 1.4.1