commit e7863ffdf51ecfc0c5614f1a91636b4fe5b8db3a
parent 70732fcdbc5b22ec1e19958c17db325c85e62a8b
Author: wh1tepearl <wh1tepearl@gmail.com>
Date: Mon, 9 Feb 2026 19:46:06 +0000
Add support for RESIZINIG_WINDOWS_IN_ALL_LAYOUTS_FLOATS_THEM
Diffstat:
3 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/modules.def.h b/modules.def.h
@@ -7,7 +7,7 @@
#define BR_CHANGE_CURSOR 1 // When resizing windows while having BETTER_RESIZE set to 1, the cursor will change depending on from which side you are resizing.
#define LOCK_MOVE_RESIZE_REFRESH_RATE 1 // Recomended to use on every pc, because cpu (software) rendered apps like ST will lagg when resizing even if you have a good pc.
#define USE_RESIZECLIENT_FUNC 0 // Use resizeclient function of instead of resize function which ignores window's resize hints, not recommended.
-
+#define RESIZINIG_WINDOWS_IN_ALL_LAYOUTS_FLOATS_THEM 0 // yeah.
/* Kind of eye candy */
@@ -69,6 +69,6 @@
#define ENHANCED_TOGGLE_FLOATING 0
/* Support for enhanced toggle floating, when toggling floating window will
resize to its natural size, and in floating layout, window will be tiled.
- REQUIRES "FLOATING_LAYOUT_FLOATS_WINDOWS" SET TO 1 TO WORK PROPERLY. */
+ REQUIRES "FLOATING_LAYOUT_FLOATS_WINDOWS" AND "RESIZINIG_WINDOWS_IN_ALL_LAYOUTS_FLOATS_THEM" SET TO 1 TO WORK PROPERLY. */
#define RESTORE_SIZE_AND_POS_ETF 0 // Restore previous size and position of window when toggling floating
diff --git a/modules/betterresize/betterresize.c b/modules/betterresize/betterresize.c
@@ -77,10 +77,12 @@ resizemouse(const Arg *arg)
int dx_final = nw - orig_w;
int dy_final = nh - orig_h;
-
+#if !RESIZINIG_WINDOWS_IN_ALL_LAYOUTS_FLOATS_THEM
if (!c->isfloating && selmon->lt[selmon->sellt]->arrange &&
(abs(dx_final) > snap || abs(dy_final) > snap)) {
-
+#else
+ if (!c->isfloating && (abs(dx_final) > snap || abs(dy_final) > snap)) {
+#endif
if (nx >= selmon->wx && nx + nw <= selmon->wx + selmon->ww &&
ny >= selmon->wy && ny + nh <= selmon->wy + selmon->wh) {
diff --git a/vxwm.c b/vxwm.c
@@ -1558,9 +1558,14 @@ resizemouse(const Arg *arg)
if (c->mon->wx + nw >= selmon->wx && c->mon->wx + nw <= selmon->wx + selmon->ww
&& c->mon->wy + nh >= selmon->wy && c->mon->wy + nh <= selmon->wy + selmon->wh)
{
+#if !RESIZINIG_WINDOWS_IN_ALL_LAYOUTS_FLOATS_THEM
if (!c->isfloating && selmon->lt[selmon->sellt]->arrange
&& (abs(nw - c->w) > snap || abs(nh - c->h) > snap))
togglefloating(NULL);
+#else
+ if (!c->isfloating && (abs(nw - c->w) > snap || abs(nh - c->h) > snap))
+ togglefloating(NULL);
+#endif
}
if (!selmon->lt[selmon->sellt]->arrange || c->isfloating)
#if USE_RESIZECLIENT_FUNC