sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 8f55f8e835a88057068933fe3fe638203b98c4b6
parent bb95ccab5e7c4c06335d71fd118f92d3b703b3a9
Author: elbachir-one <bachiralfa@gmail.com>
Date:   Fri,  3 Jan 2025 14:40:32 +0100

[dwm][patches][defaultmfact]

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

Diffstat:
Mdwm.suckless.org/patches/defaultmfact/dwm-defaultmfact-6.5.diff | 12++++++------
Mdwm.suckless.org/patches/defaultmfact/index.md | 9++++-----
2 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/dwm.suckless.org/patches/defaultmfact/dwm-defaultmfact-6.5.diff b/dwm.suckless.org/patches/defaultmfact/dwm-defaultmfact-6.5.diff @@ -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 */ @@ -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 @@ -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 ------