[wiki] [sites] [dwm][patch] swapfocus bug fix || Aaron Duxler
commit c45e2ee25b6a723ea7865e7a149dce3a3a2b20d0
Author: Aaron Duxler <aaron.duxler_AT_gmail.com>
Date: Wed Jan 29 00:22:45 2020 +0100
[dwm][patch] swapfocus bug fix
diff --git a/dwm.suckless.org/patches/swapfocus/dwm-swapfocus-6.2.diff b/dwm.suckless.org/patches/swapfocus/dwm-swapfocus-6.2.diff
index 934456d2..beb3936b 100644
--- a/dwm.suckless.org/patches/swapfocus/dwm-swapfocus-6.2.diff
+++ b/dwm.suckless.org/patches/swapfocus/dwm-swapfocus-6.2.diff
_AT_@ -1,6 +1,6 @@
diff -up a/config.def.h b/config.def.h
---- a/config.def.h 2019-06-26 22:55:48.406595279 +0200
-+++ b/config.def.h 2019-07-21 21:50:32.649343232 +0200
+--- a/config.def.h 2020-01-29 00:06:12.415681126 +0100
++++ b/config.def.h 2020-01-29 00:08:59.832656153 +0100
_AT_@ -66,6 +66,7 @@ static Key keys[] = {
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
_AT_@ -10,8 +10,8 @@ diff -up a/config.def.h b/config.def.h
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
diff -up a/dwm.c b/dwm.c
---- a/dwm.c 2019-06-26 22:55:48.409928612 +0200
-+++ b/dwm.c 2019-07-21 22:29:17.400607398 +0200
+--- a/dwm.c 2020-01-29 00:06:12.419014466 +0100
++++ b/dwm.c 2020-01-29 00:10:58.149498015 +0100
_AT_@ -111,6 +111,7 @@ typedef struct {
void (*arrange)(Monitor *);
} Layout;
_AT_@ -65,7 +65,7 @@ diff -up a/dwm.c b/dwm.c
}
void
-_AT_@ -1653,6 +1664,28 @@ spawn(const Arg *arg)
+_AT_@ -1653,11 +1664,34 @@ spawn(const Arg *arg)
}
void
_AT_@ -94,7 +94,13 @@ diff -up a/dwm.c b/dwm.c
tag(const Arg *arg)
{
if (selmon->sel && arg->ui & TAGMASK) {
-_AT_@ -1738,9 +1771,22 @@ void
+ selmon->sel->tags = arg->ui & TAGMASK;
+ focus(NULL);
++ selmon->pertag->prevclient[selmon->pertag->curtag] = nexttiled(selmon->clients);
+ arrange(selmon);
+ }
+ }
+_AT_@ -1738,9 +1772,22 @@ void
toggleview(const Arg *arg)
{
unsigned int newtagset = selmon->tagset[selmon->seltags] ^ (arg->ui & TAGMASK);
_AT_@ -117,7 +123,7 @@ diff -up a/dwm.c b/dwm.c
focus(NULL);
arrange(selmon);
}
-_AT_@ -1751,6 +1797,7 @@ unfocus(Client *c, int setfocus)
+_AT_@ -1751,6 +1798,7 @@ unfocus(Client *c, int setfocus)
{
if (!c)
return;
_AT_@ -125,7 +131,7 @@ diff -up a/dwm.c b/dwm.c
grabbuttons(c, 0);
XSetWindowBorder(dpy, c->win, scheme[SchemeNorm][ColBorder].pixel);
if (setfocus) {
-_AT_@ -2035,12 +2082,30 @@ updatewmhints(Client *c)
+_AT_@ -2035,12 +2083,30 @@ updatewmhints(Client *c)
void
view(const Arg *arg)
{
_AT_@ -157,7 +163,7 @@ diff -up a/dwm.c b/dwm.c
arrange(selmon);
}
-_AT_@ -2114,12 +2179,13 @@ void
+_AT_@ -2114,12 +2180,13 @@ void
zoom(const Arg *arg)
{
Client *c = selmon->sel;
diff --git a/dwm.suckless.org/patches/swapfocus/index.md b/dwm.suckless.org/patches/swapfocus/index.md
index f2ebc44b..f0bf9591 100644
--- a/dwm.suckless.org/patches/swapfocus/index.md
+++ b/dwm.suckless.org/patches/swapfocus/index.md
_AT_@ -15,7 +15,7 @@ Changes in 6.2
Download
--------
-* [dwm-swapfocus-6.2.diff](dwm-swapfocus-6.2.diff) (21.07.2019)
+* [dwm-swapfocus-6.2.diff](dwm-swapfocus-6.2.diff) (29.01.2020)
* [dwm-swapfocus-20160731-56a31dc.diff](dwm-swapfocus-20160731-56a31dc.diff)
* [dwm-swapfocus-6.0.diff](dwm-swapfocus-6.0.diff) (1482b) (20120406)
* [dwm-5.8.2-swap.diff](dwm-5.8.2-swap.diff) (dwm 5.8.2)
Received on Wed Jan 29 2020 - 00:22:51 CET
This archive was generated by hypermail 2.3.0
: Wed Jan 29 2020 - 00:24:43 CET