summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2022-08-03 11:20:09 +0200
committerbakkeby <[email protected]>2022-08-03 11:20:09 +0200
commit10aa27171f87b88bfb48747e9d57361ec7bdaacd (patch)
tree37e5d0afe7d98d1449238bd67a293caf4d76434d
parent4b20c92b4c7969472b31cf364ee081f58874f40a (diff)
downloaddwm-flexipatch-10aa27171f87b88bfb48747e9d57361ec7bdaacd.tar.gz
dwm-flexipatch-10aa27171f87b88bfb48747e9d57361ec7bdaacd.zip
Bump to 5b2e5e7.
spawn: reduce 2 lines, change fprintf() + perror() + exit() to die("... :") when calling die and the last character of the string corresponds to ':', die() will call perror(). See util.c Also change EXIT_SUCCESS to EXIT_FAILURE Ref. https://git.suckless.org/dwm/commit/5b2e5e7a4001479e4dc3e245f96e49f7ea0da658.html
-rw-r--r--README.md2
-rw-r--r--dwm.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/README.md b/README.md
index 29abf31..a2373fd 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-This dwm 6.3 (9bffa84, 2022-07-14) side project has a different take on dwm patching. It uses preprocessor directives to decide whether or not to include a patch during build time. Essentially this means that this build, for better or worse, contains both the patched _and_ the original code. The aim being that you can select which patches to include and the build will contain that code and nothing more. Due to the complexity of some of the patches dwm-flexipatch has diverged from mainstream dwm by making some core patches non-optional for maintenance reasons. For the classic dwm-flexipatch build refer to branch [dwm-flexipatch-1.0](https://github.com/bakkeby/dwm-flexipatch/tree/dwm-flexipatch-1.0).
+This dwm 6.3 (5b2e5e7, 2022-07-29) side project has a different take on dwm patching. It uses preprocessor directives to decide whether or not to include a patch during build time. Essentially this means that this build, for better or worse, contains both the patched _and_ the original code. The aim being that you can select which patches to include and the build will contain that code and nothing more. Due to the complexity of some of the patches dwm-flexipatch has diverged from mainstream dwm by making some core patches non-optional for maintenance reasons. For the classic dwm-flexipatch build refer to branch [dwm-flexipatch-1.0](https://github.com/bakkeby/dwm-flexipatch/tree/dwm-flexipatch-1.0).
For example to include the `alpha` patch then you would only need to flip this setting from 0 to 1 in [patches.h](https://github.com/bakkeby/dwm-flexipatch/blob/master/patches.def.h):
```c
diff --git a/dwm.c b/dwm.c
index 67ced01..20e8496 100644
--- a/dwm.c
+++ b/dwm.c
@@ -3990,9 +3990,7 @@ spawn(const Arg *arg)
#endif // SPAWNCMD_PATCH
setsid();
execvp(((char **)arg->v)[0], (char **)arg->v);
- fprintf(stderr, "dwm: execvp %s", ((char **)arg->v)[0]);
- perror(" failed");
- exit(EXIT_SUCCESS);
+ die("dwm: execvp '%s' failed:", ((char **)arg->v)[0]);
}
#if RIODRAW_PATCH
return pid;