dwm-spawnprograms-6.2.diff (1139B)
1 Only in dwm-6.2-patched: config.h 2 Only in dwm-6.2-patched: drw.o 3 Only in dwm-6.2-patched: dwm 4 diff -up dwm-6.2/dwm.c dwm-6.2-patched/dwm.c 5 --- dwm-6.2/dwm.c 2019-02-02 13:55:28.000000000 +0100 6 +++ dwm-6.2-patched/dwm.c 2021-05-03 16:21:31.571201407 +0200 7 @@ -233,6 +233,7 @@ static int xerror(Display *dpy, XErrorEv 8 static int xerrordummy(Display *dpy, XErrorEvent *ee); 9 static int xerrorstart(Display *dpy, XErrorEvent *ee); 10 static void zoom(const Arg *arg); 11 +static void spawnprograms(); 12 13 /* variables */ 14 static const char broken[] = "broken"; 15 @@ -2124,6 +2125,17 @@ zoom(const Arg *arg) 16 pop(c); 17 } 18 19 +void 20 +spawnprograms() 21 +{ 22 + /* iterate through startup_programs and spawn each program */ 23 + for(int i = 0; i < sizeof(startup_programs) / sizeof(char **); i++) 24 + { 25 + Arg prog = {.v = startup_programs[i]}; 26 + spawn(&prog); 27 + } 28 +} 29 + 30 int 31 main(int argc, char *argv[]) 32 { 33 @@ -2142,6 +2154,7 @@ main(int argc, char *argv[]) 34 die("pledge"); 35 #endif /* __OpenBSD__ */ 36 scan(); 37 + spawnprograms(); 38 run(); 39 cleanup(); 40 XCloseDisplay(dpy); 41 Only in dwm-6.2-patched: dwm.o 42 Only in dwm-6.2-patched: util.o