URI: 
       dwm-r1522-viewontag.diff - sites - public wiki contents of suckless.org
  HTML git clone git://git.suckless.org/sites
   DIR Log
   DIR Files
   DIR Refs
       ---
       dwm-r1522-viewontag.diff (825B)
       ---
            1 diff -r 0d86faf4b05c config.def.h
            2 --- a/config.def.h        Sun Jul 25 09:58:25 2010 +0100
            3 +++ b/config.def.h        Sun Jul 25 16:32:38 2010 +0200
            4 @@ -12,6 +12,7 @@
            5  static const unsigned int snap      = 32;       /* snap pixel */
            6  static const Bool showbar           = True;     /* False means no bar */
            7  static const Bool topbar            = True;     /* False means bottom bar */
            8 +static const Bool viewontag         = True;     /* Switch view on tag switch */
            9  
           10  /* tagging */
           11  static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
           12 diff -r 0d86faf4b05c dwm.c
           13 --- a/dwm.c        Sun Jul 25 09:58:25 2010 +0100
           14 +++ b/dwm.c        Sun Jul 25 16:32:38 2010 +0200
           15 @@ -1613,6 +1613,8 @@
           16          if(selmon->sel && arg->ui & TAGMASK) {
           17                  selmon->sel->tags = arg->ui & TAGMASK;
           18                  arrange(selmon);
           19 +                if(viewontag)
           20 +                        view(arg);
           21          }
           22  }
           23