sites

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

commit 479e1366b37c7caf4a964da7c78c7d970fe9c2a8
parent 6614c27eba939b13eaf60c327ba601e4ac9a1bec
Author: Miles Alan <m@milesalan.com>
Date:   Sat, 26 Sep 2020 09:04:53 -0500

transfer: Fix null pointer exception when no focused client

Diffstat:
Mdwm.suckless.org/patches/transfer/dwm-transfer-6.2.diff | 2+-
Mdwm.suckless.org/patches/transfer/index.md | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dwm.suckless.org/patches/transfer/dwm-transfer-6.2.diff b/dwm.suckless.org/patches/transfer/dwm-transfer-6.2.diff @@ -52,7 +52,7 @@ index 4465af1..ada794b 100644 + stail = c; + i++; + } -+ if (selmon->sel->isfloating || i == 0) { ++ if (!selmon->sel || selmon->sel->isfloating || i == 0) { + return; + } else if (transfertostack) { + selmon->nmaster = MIN(i, selmon->nmaster) - 1; diff --git a/dwm.suckless.org/patches/transfer/index.md b/dwm.suckless.org/patches/transfer/index.md @@ -18,7 +18,7 @@ effectively swapping the master and the stack. The new nmaster is adjusted to be the old number of clients in the stack. ## Download -* [dwm-transfer-6.2.diff](dwm-transfer-6.2.diff) (01/25/2020) +* [dwm-transfer-6.2.diff](dwm-transfer-6.2.diff) (09/26/2020) * [dwm-transferall-6.2.diff](dwm-transferall-6.2.diff) (02/01/2020) ## Author