about summary refs log tree commit diff
path: root/dwm.c
diff options
context:
space:
mode:
authoranselm@garbe.us <unknown>2012-01-12 07:36:05 +0100
committeranselm@garbe.us <unknown>2012-01-12 07:36:05 +0100
commit873bcb97a90727be29fe28774fc6b5546660b447 (patch)
treeb83ce8d76ffbdbd37b6d536e305278581d6679da /dwm.c
parentconfig.mk cleanup (diff)
downloaddwm-873bcb97a90727be29fe28774fc6b5546660b447.tar.gz
dwm-873bcb97a90727be29fe28774fc6b5546660b447.tar.bz2
dwm-873bcb97a90727be29fe28774fc6b5546660b447.zip
applied Eckehard Berns barwin leak fix and his suggestion to deal with restack() -- the latter aspect needs further investigation.
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dwm.c b/dwm.c
index 1d78655..0f946a6 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1420,8 +1420,6 @@ restack(Monitor *m) {
 	drawbar(m);
 	if(!m->sel)
 		return;
-	if(m->sel->isfloating || !m->lt[m->sellt]->arrange)
-		XRaiseWindow(dpy, m->sel->win);
 	if(m->lt[m->sellt]->arrange) {
 		wc.stack_mode = Below;
 		wc.sibling = m->barwin;
@@ -1827,6 +1825,8 @@ updatebars(void) {
 		.event_mask = ButtonPressMask|ExposureMask
 	};
 	for(m = mons; m; m = m->next) {
+		if (m->barwin)
+			continue;
 		m->barwin = XCreateWindow(dpy, root, m->wx, m->by, m->ww, bh, 0, DefaultDepth(dpy, screen),
 		                          CopyFromParent, DefaultVisual(dpy, screen),
 		                          CWOverrideRedirect|CWBackPixmap|CWEventMask, &wa);
@@ -2129,7 +2129,7 @@ zoom(const Arg *arg) {
 int
 main(int argc, char *argv[]) {
 	if(argc == 2 && !strcmp("-v", argv[1]))
-		die("dwm-"VERSION", © 2006-2011 dwm engineers, see LICENSE for details\n");
+		die("dwm-"VERSION", © 2006-2012 dwm engineers, see LICENSE for details\n");
 	else if(argc != 1)
 		die("usage: dwm [-v]\n");
 	if(!setlocale(LC_CTYPE, "") || !XSupportsLocale())