[wiki] [sites] [dwm][patches][defaultmfact] || elbachir-one

From: <git_AT_suckless.org>
Date: Fri, 03 Jan 2025 15:39:30 +0100

commit 8f55f8e835a88057068933fe3fe638203b98c4b6
Author: elbachir-one <bachiralfa_AT_gmail.com>
Date: Fri Jan 3 14:40:32 2025 +0100

    [dwm][patches][defaultmfact]
    
        - Fixed index.md (typos).
        - Fixed dwm-defaultmfact-6.5.diff ('MASTER_DEFAULT' undeclared).

diff --git a/dwm.suckless.org/patches/defaultmfact/dwm-defaultmfact-6.5.diff b/dwm.suckless.org/patches/defaultmfact/dwm-defaultmfact-6.5.diff
index 8a4dfe7d..815f6b54 100644
--- a/dwm.suckless.org/patches/defaultmfact/dwm-defaultmfact-6.5.diff
+++ b/dwm.suckless.org/patches/defaultmfact/dwm-defaultmfact-6.5.diff
_AT_@ -17,7 +17,7 @@ index 9efa774..368fc0e 100644
  
  /* layout(s) */
 -static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
-+#define DEFAULT_MFACT
++#define DEFAULT_MFACT 0.55
 +static const float mfact = DEFAULT_MFACT; /* factor of master area size [0.05..0.95] */
  static const int nmaster = 1; /* number of clients in master area */
  static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
_AT_@ -42,11 +42,11 @@ index 1443802..057fde7 100644
  void
  setmfact(const Arg *arg)
  {
-+ if (arg->f <= -1.0) {
-+ selmon->mfact = MASTER_DEFAULT;
-+ arrange(selmon);
-+ return;
-+ }
++ if (arg->f <= -1.0) {
++ selmon->mfact = DEFAULT_MFACT;
++ arrange(selmon);
++ return;
++ }
 +
          float f;
  
diff --git a/dwm.suckless.org/patches/defaultmfact/index.md b/dwm.suckless.org/patches/defaultmfact/index.md
index ff5c26e3..905be799 100644
--- a/dwm.suckless.org/patches/defaultmfact/index.md
+++ b/dwm.suckless.org/patches/defaultmfact/index.md
_AT_@ -3,14 +3,13 @@ defaultmfact
 
 Description
 -----------
-Allows master tile separator to be reset to default value (DEFAULT_MFACT).
-Default keybinding for this behaviour is MODMASK + XK_equal.
-
-Tested only with Tiled layout so far.
+Allows the master tile separator to be reset to its default value (DEFAULT_MFACT).
+The default keybinding for this behavior is MODMASK + XK_equal.
+This functionality has been tested only with the Tiled layout so far.
 
 Download
 --------
-* [dwm-defaultmfact-6.5.diff](dwm-defaultmfact-6.5.diff), 2025-01-03
+* [dwm-defaultmfact-6.5.diff](dwm-defaultmfact-6.5.diff) (2025-01-03)
 
 Author
 ------
Received on Fri Jan 03 2025 - 15:39:30 CET

This archive was generated by hypermail 2.3.0 : Fri Jan 03 2025 - 15:49:10 CET