commit 8393ee244d5f8c3a1e7304cfeb778b2dbdfcd7a5
parent 16ea538e501a0f4c0f5bdc6218acbefad8e08bca
Author: wh1tepearl <wh1tepearl@gmail.com>
Date: Tue, 3 Feb 2026 16:40:52 +0000
Support for pdwm like tags animation (requires picom)
Diffstat:
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/modules.def.h b/modules.def.h
@@ -47,6 +47,11 @@
behaviour being enabled, for example when you use a compositor like picom - your
windows will fade in and out when you switch dwm tags. */
+#define PDWM_LIKE_TAGS_ANIMATION 0
+/* This makes function showhide be like in pdwm, if using a compositor like picom,
+ this results in an alternative tags animation. */
+
+
/* Floating */
/* Recomended to use with ALWAYS_CENTER_NEW_FLOATING_WINDOWS set to 1. */
diff --git a/vxwm.c b/vxwm.c
@@ -1891,9 +1891,13 @@ showhide(Client *c)
/* hide clients bottom up */
showhide(c->snext);
#if !WINDOWMAP
- XMoveWindow(dpy, c->win, WIDTH(c) * -2, c->y);
+ #if !PDWM_LIKE_TAGS_ANIMATION
+ XMoveWindow(dpy, c->win, WIDTH(c) * -2, c->y);
+ #else
+ XMoveWindow(dpy, c->win, c->mon->wx + c->mon->ww / 2, -(HEIGHT(c)));
+ #endif
#else
- window_unmap(dpy, c->win, root, 1);
+ window_unmap(dpy, c->win, root, 1);
#endif
}
}