Make automatic tag switching optional stil tip
authorStiletto <blasux@blasux.ru>
Sat, 25 Oct 2014 15:12:32 +0400
branchstil
changeset 1542 a699915c007f
parent 1541 16039d3a6270
Make automatic tag switching optional
dwm.c
--- a/dwm.c	Wed Apr 02 20:49:20 2014 +0400
+++ b/dwm.c	Sat Oct 25 15:12:32 2014 +0400
@@ -250,7 +250,7 @@
 
 /* variables */
 static const char broken[] = "broken";
-static char stext[256];
+static char stext[512];
 static int screen;
 static int sw, sh;           /* X display screen geometry width, height */
 static int bh, blw = 0;      /* bar geometry */
@@ -563,6 +563,7 @@
 			setfullscreen(c, (cme->data.l[0] == 1 /* _NET_WM_STATE_ADD    */
 			              || (cme->data.l[0] == 2 /* _NET_WM_STATE_TOGGLE */ && !c->isfullscreen)));
 	}
+#ifdef SWITCH_TAG_ON_NETACTIVEWINDOW
 	else if(cme->message_type == netatom[NetActiveWindow]) {
 		if(!ISVISIBLE(c)) {
 			c->mon->seltags ^= 1;
@@ -570,6 +571,7 @@
 		}
 		pop(c);
 	}
+#endif
 }
 
 void