t* dwm + patches URI git clone git://git.codevoid.de/dwm-sdk DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 9c0c8af25034cab9ea06fd2d10ae142525478a25 DIR parent 878f325784653f1d6c451054fd27bceabf07b89d URI Author: Stefan Hagen <sh+git[at]codevoid[dot]de> Date: Sun, 3 Nov 2019 20:45:21 +0100 Allow scratchpad on fullscreen Diffstat: M config.h | 4 ++-- M dwm.c | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) --- DIR diff --git a/config.h b/config.h t@@ -129,8 +129,8 @@ static Key keys[] = { { MODKEY, XK_period, focusmon, {.i = +1 } }, { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, - //{ MODKEY|ShiftMask, XK_Left, viewtoleft, {0} }, - //{ MODKEY|ShiftMask, XK_Right, viewtoright, {0} }, + { MODKEY|ShiftMask, XK_Left, viewtoleft, {0} }, + { MODKEY|ShiftMask, XK_Right, viewtoright, {0} }, { MODKEY|ShiftMask, XK_End, quit, {0} }, TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) DIR diff --git a/dwm.c b/dwm.c t@@ -244,6 +244,7 @@ static void seturgent(Client *c, int urg); static void showhide(Client *c); static void sigchld(int unused); static void spawn(const Arg *arg); +static void spawn_norestore(const Arg *arg); static Monitor *systraytomon(Monitor *m); static void tag(const Arg *arg); static void tagmon(const Arg *arg); t@@ -1829,6 +1830,10 @@ void sigchld(int unused) void spawn(const Arg *arg) { restore(); + spawn_norestore(arg); +} +void spawn_norestore(const Arg *arg) +{ if (arg->v == dmenucmd) dmenumon[0] = '0' + selmon->num; if (fork() == 0) { t@@ -1944,7 +1949,7 @@ void togglescratch(const Arg *arg) restack(selmon); } } else - spawn(arg); + spawn_norestore(arg); } void toggletag(const Arg *arg)