diff options
| author | MineralwaterXu <[email protected]> | 2020-11-30 19:51:40 +0800 |
|---|---|---|
| committer | MineralwaterXu <[email protected]> | 2020-11-30 19:51:40 +0800 |
| commit | 2ebb2f57717ce066d2fe146dca1ad3a60caec85d (patch) | |
| tree | d286815161555edb901585d3b568c1db51f6953b /patches/dwm-r1522-viewontag.diff | |
first build
Diffstat (limited to 'patches/dwm-r1522-viewontag.diff')
| -rw-r--r-- | patches/dwm-r1522-viewontag.diff | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/patches/dwm-r1522-viewontag.diff b/patches/dwm-r1522-viewontag.diff new file mode 100644 index 0000000..6f87cd5 --- /dev/null +++ b/patches/dwm-r1522-viewontag.diff @@ -0,0 +1,23 @@ +diff -r 0d86faf4b05c config.def.h +--- a/config.def.h Sun Jul 25 09:58:25 2010 +0100 ++++ b/config.def.h Sun Jul 25 16:32:38 2010 +0200 +@@ -12,6 +12,7 @@ + static const unsigned int snap = 32; /* snap pixel */ + static const Bool showbar = True; /* False means no bar */ + static const Bool topbar = True; /* False means bottom bar */ ++static const Bool viewontag = True; /* Switch view on tag switch */ + + /* tagging */ + static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; +diff -r 0d86faf4b05c dwm.c +--- a/dwm.c Sun Jul 25 09:58:25 2010 +0100 ++++ b/dwm.c Sun Jul 25 16:32:38 2010 +0200 +@@ -1613,6 +1613,8 @@ + if(selmon->sel && arg->ui & TAGMASK) { + selmon->sel->tags = arg->ui & TAGMASK; + arrange(selmon); ++ if(viewontag) ++ view(arg); + } + } + |
