summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--README.md5
-rw-r--r--dwm.c3
-rw-r--r--patches.h5
3 files changed, 12 insertions, 1 deletions
diff --git a/README.md b/README.md
index 0252bd2..60cad3f 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@ Refer to [https://dwm.suckless.org/](https://dwm.suckless.org/) for details on t
### Changelog:
-2019-09-15 - Added xrdb and winview patches
+2019-09-15 - Added xrdb, viewontag and winview patches
2019-09-14 - Added setborderpx, selfrestart and push (no master variant), sticky and warp patches
@@ -157,6 +157,9 @@ Refer to [https://dwm.suckless.org/](https://dwm.suckless.org/) for details on t
- [vanitygaps](https://github.com/bakkeby/dwm-vanitygaps/blob/master/patches/dwm-vanitygaps-6.2.diff)
- adds configurable gaps between windows differentiating between outer, inner, horizontal and vertical gaps
+ - [viewontag](https://dwm.suckless.org/patches/viewontag/)
+ - follow a window to the tag it is being moved to
+
- [warp](https://dwm.suckless.org/patches/warp/)
- warps the mouse cursor to the center of the currently focused window or screen when the mouse cursor is (a) on a different screen or (b) on top of a different window
diff --git a/dwm.c b/dwm.c
index eaa7e4f..dff5555 100644
--- a/dwm.c
+++ b/dwm.c
@@ -2439,6 +2439,9 @@ tag(const Arg *arg)
selmon->sel->tags = arg->ui & TAGMASK;
focus(NULL);
arrange(selmon);
+ #if VIEWONTAG_PATCH
+ view(arg);
+ #endif // VIEWONTAG_PATCH
}
}
diff --git a/patches.h b/patches.h
index b24dc49..24e6846 100644
--- a/patches.h
+++ b/patches.h
@@ -270,6 +270,11 @@
*/
#define VANITYGAPS_PATCH 0
+/* Follow a window to the tag it is being moved to.
+ * https://dwm.suckless.org/patches/viewontag/
+ */
+#define VIEWONTAG_PATCH 0
+
/* This patch warps the mouse cursor to the center of the currently focused window or screen
* when the mouse cursor is (a) on a different screen or (b) on top of a different window.
* https://dwm.suckless.org/patches/warp/