commit f4a871b6d31c7d11b304bb74a1f7abb32fa7773f
parent 7b21d0b4a9fd0fbb249c5b56bfc6a5a60a7a73f6
Author: Markus Pinkert <peters_mops@arcor.de>
Date: Sun, 13 Jun 2010 23:06:26 +0200
patch: following the window when tag changes
Diffstat:
2 files changed, 37 insertions(+), 0 deletions(-)
diff --git a/dwm.suckless.org/patches/dwm-r1520-viewontag.diff b/dwm.suckless.org/patches/dwm-r1520-viewontag.diff
@@ -0,0 +1,23 @@
+diff -r 53d98940cb04 config.def.h
+--- a/config.def.h Fri Jun 04 11:41:16 2010 +0100
++++ b/config.def.h Sun Jun 13 22:53:04 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 viewonttag = True; /* Switch view on tag switch */
+
+ /* tagging */
+ static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
+diff -r 53d98940cb04 dwm.c
+--- a/dwm.c Fri Jun 04 11:41:16 2010 +0100
++++ b/dwm.c Sun Jun 13 22:53:04 2010 +0200
+@@ -1613,6 +1613,8 @@
+ if(selmon->sel && arg->ui & TAGMASK) {
+ selmon->sel->tags = arg->ui & TAGMASK;
+ arrange(selmon);
++ if(viewonttag)
++ view(arg);
+ }
+ }
+
diff --git a/dwm.suckless.org/patches/viewontag.md b/dwm.suckless.org/patches/viewontag.md
@@ -0,0 +1,14 @@
+# VIEWONTAG
+
+## Description
+
+ * follow a window to the tag it is being moved to
+
+## Download
+
+ * [dwm-r1520-viewontag.diff](dwm-r1520-viewontag.diff) (dwm r1520) (20100613)
+
+## Author
+
+ * Markus P. - peters_mops at arcor . de
+