Introduction
Introduction Statistics Contact Development Disclaimer Help
dwm-defaultmfact patch fix: - sites - public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log
Files
Refs
---
commit 885eccfb082883973d02fe3962d89251ea11aff7
parent 0415e0084e7fb7adc60e094cad86ae2a99326415
Author: Rumen <[email protected]>
Date: Fri, 3 Jan 2025 17:28:32 +0100
dwm-defaultmfact patch fix:
fixed inconsistency in patch comments which could lead to confusion
Diffstat:
M dwm.suckless.org/patches/defaultmf… | 24 +++++++++++++-----------
M dwm.suckless.org/patches/defaultmf… | 4 ++--
2 files changed, 15 insertions(+), 13 deletions(-)
---
diff --git a/dwm.suckless.org/patches/defaultmfact/dwm-defaultmfact-6.5.diff b/…
@@ -1,15 +1,17 @@
-From c22678978ff22d2c40c56ffecd7a9306183872f5 Mon Sep 17 00:00:00 2001
+From 7c770d00c0010e93b37042e9fdff34e3d161ff15 Mon Sep 17 00:00:00 2001
From: Rumen <[email protected]>
-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
@@ -32,7 +32,8 @@ static const Rule rules[] = {
@@ -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
@@ -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/…
@@ -3,8 +3,8 @@ defaultmfact
Description
-----------
-Allows the master tile separator to be reset to its default value (DEFAULT_MFA…
-The default keybinding for this behavior is MODMASK + XK_equal.
+Allows the master tile separator to be reset to its default value (DEFAULT\_MF…
+The default keybinding for this behavior is MODMASK + XK\_equal.
This functionality has been tested only with the Tiled layout so far.
Download
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.