From e3f0445df1dcdd34189c9d48cbad67dd32764575 Mon Sep 17 00:00:00 2001
From: Anselm R Garbe <garbeam@gmail.com>
Date: Thu, 25 Jun 2009 11:10:19 +0100
Subject: [PATCH] assign selected tags of target monitor to client when tagmon
 is performed (less obtrusive imho)

---
 dwm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dwm.c b/dwm.c
index b54ccd4..6459512 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1502,6 +1502,7 @@ tagmon(const Arg *arg) {
 			detach(c);
 			detachstack(c);
 			c->mon = m;
+			c->tags = selmon->seltags; /* assign tags of target monitor */
 			attach(c);
 			attachstack(c);
 			m->sel = c;