Update dragmfact

This commit is contained in:
Palanix 2024-02-16 23:29:23 +01:00
parent 713c27856b
commit b2581e4465
No known key found for this signature in database
GPG Key ID: 439CD6BD9905FAC5

View File

@ -1,4 +1,4 @@
From 24e67acd6c123481b9248385aba305e3cfd433ac Mon Sep 17 00:00:00 2001
From 435cdf673e5a8080123109dbf874aac2ccef1498 Mon Sep 17 00:00:00 2001
From: Palanix <palanixyt@gmail.com>
Date: Fri, 25 Mar 2022 23:45:10 +0100
Subject: [PATCH] Change mfact using Middle mouse
@ -21,7 +21,7 @@ index 9009517..3c26522 100644
{ MODKEY, BTN_RIGHT, moveresize, {.ui = CurResize} },
};
diff --git a/dwl.c b/dwl.c
index fa76db2..8fa2e22 100644
index fa76db2..528e102 100644
--- a/dwl.c
+++ b/dwl.c
@@ -76,7 +76,7 @@
@ -38,7 +38,7 @@ index fa76db2..8fa2e22 100644
.width = ROUND(cursor->x) - grabc->geom.x, .height = ROUND(cursor->y) - grabc->geom.y}, 1);
return;
+ } else if (cursor_mode == Curmfact && time) {
+ selmon->mfact = cursor->x / selmon->m.width;
+ selmon->mfact = (float) (cursor->x / selmon->m.width);
+ arrange(selmon);
}
@ -49,7 +49,7 @@ index fa76db2..8fa2e22 100644
break;
+ case Curmfact:
+ setfloating(grabc, 0);
+ selmon->mfact = cursor->x / selmon->m.width;
+ selmon->mfact = (float) (cursor->x / selmon->m.width);
+ arrange(selmon);
}
}