# HG changeset patch # User Stiletto # Date 1414235552 -14400 # Node ID a699915c007fd0c0db8980c54c708e161e85d5f1 # Parent 16039d3a6270a14ce470d33f592bed798b4b3e38 Make automatic tag switching optional diff -r 16039d3a6270 -r a699915c007f 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