summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2010-09-25 20:04:55 +0000
committerokan <okan>2010-09-25 20:04:55 +0000
commitdee6ac5b7db3605e1364789001aa2502f0b2d287 (patch)
tree09a363dc6c8c97b2d11bed5196f3a2d1dd35f31f
parent2d66003e4b8013d02370982fdf617510b108144c (diff)
downloadcwm-dee6ac5b7db3605e1364789001aa2502f0b2d287.tar.gz
cwm-dee6ac5b7db3605e1364789001aa2502f0b2d287.tar.xz
cwm-dee6ac5b7db3605e1364789001aa2502f0b2d287.zip
do not warp to clients marked 'ignore'; from chneukirchen at gmail - thanks.
(with the manpage bit from me).

ok oga@
-rw-r--r--xevents.c6
1 files changed, 6 insertions, 0 deletions
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);
 }