[wiki] [sites] dwm-defaultmfact patch fix: || Rumen

From: <git_AT_suckless.org>
Date: Fri, 03 Jan 2025 17:31:14 +0100

commit 885eccfb082883973d02fe3962d89251ea11aff7
Author: Rumen <rumenmitov_AT_protonmail.com>
Date: Fri Jan 3 17:28:32 2025 +0100

    dwm-defaultmfact patch fix:
    
    fixed inconsistency in patch comments which could lead to confusion

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 815f6b54..a2e6ebda 100644
--- a/dwm.suckless.org/patches/defaultmfact/dwm-defaultmfact-6.5.diff
+++ b/dwm.suckless.org/patches/defaultmfact/dwm-defaultmfact-6.5.diff
_AT_@ -1,15 +1,17 @@
-From c22678978ff22d2c40c56ffecd7a9306183872f5 Mon Sep 17 00:00:00 2001
+From 7c770d00c0010e93b37042e9fdff34e3d161ff15 Mon Sep 17 00:00:00 2001
 From: Rumen <rumenmitov_AT_protonmail.com>
-Date: Fri, 3 Jan 2025 12:36:19 +0100
-Subject: [PATCH] patch: setting default mfact + example keybind
+Date: Fri, 3 Jan 2025 17:14:51 +0100
+Subject: [PATCH] patch: defaultmfact
 
+patch adds a default value for mfact, which can be used through
+setmfact
 ---
  config.def.h | 4 +++-
  dwm.c | 7 +++++++
  2 files changed, 10 insertions(+), 1 deletion(-)
 
 diff --git a/config.def.h b/config.def.h
-index 9efa774..368fc0e 100644
+index 9efa774..acb43cb 100644
 --- a/config.def.h
 +++ b/config.def.h
 _AT_@ -32,7 +32,8 @@ static const Rule rules[] = {
_AT_@ -31,22 +33,22 @@ index 9efa774..368fc0e 100644
          { MODKEY, XK_Tab, view, {0} },
          { MODKEY|ShiftMask, XK_c, killclient, {0} },
 diff --git a/dwm.c b/dwm.c
-index 1443802..057fde7 100644
+index 1443802..bf3a66e 100644
 --- a/dwm.c
 +++ b/dwm.c
 _AT_@ -1521,9 +1521,16 @@ setlayout(const Arg *arg)
  }
  
  /* arg > 1.0 will set mfact absolutely */
-+/* arg <= -1.0 will set mfact to MASTER_DEFAULT */
++/* arg <= -1.0 will set mfact to DEFAULT_MFACT */
  void
  setmfact(const Arg *arg)
  {
-+ if (arg->f <= -1.0) {
-+ selmon->mfact = DEFAULT_MFACT;
-+ 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 905be799..2f6896fc 100644
--- a/dwm.suckless.org/patches/defaultmfact/index.md
+++ b/dwm.suckless.org/patches/defaultmfact/index.md
_AT_@ -3,8 +3,8 @@ defaultmfact
 
 Description
 -----------
-Allows the master tile separator to be reset to its default value (DEFAULT_MFACT).
-The default keybinding for this behavior is MODMASK + XK_equal.
+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
Received on Fri Jan 03 2025 - 17:31:14 CET

This archive was generated by hypermail 2.3.0 : Fri Jan 03 2025 - 17:36:53 CET