about summary refs log tree commit diff stats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2009-08-18 15:42:55 +0100
committerAnselm R Garbe <garbeam@gmail.com>2009-08-18 15:42:55 +0100
commit57629642321b9850edddf068ac9ddf8737979390 (patch)
treebc487668767e22052079e6d68988409d0d29b9d5 /dwm.c
parentcba6b211c2ab1564d818fa7dac85b71ba5663e0d (diff)
downloaddwm-57629642321b9850edddf068ac9ddf8737979390.tar.gz
also update title if the client is on an unfocused monitor
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index 74b7795..f63a1c0 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1235,7 +1235,7 @@ propertynotify(XEvent *e) {
 		}
 		if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
 			updatetitle(c);
-			if(c == selmon->sel)
+			if(c == c->mon->sel)
 				drawbars();
 		}
 	}