File tree 3 files changed +16
-2
lines changed
3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -68,3 +68,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
68
68
## [0.1.1] - 2020-11-21
69
69
### Added
70
70
- Makefile warnings (e.g. -Wall, Wextra, etc.).
71
+
72
+ ## [0.1.2] - 2020-11-23
73
+ ### Changed
74
+ - Default surf start page to startpage.com.
75
+
76
+ ### Fixed
77
+ - Zombie reaping.
78
+
Original file line number Diff line number Diff line change 39
39
40
40
static char * termcmd [] = { "st" , NULL };
41
41
static char * menucmd [] = { "dmenu_run" , NULL };
42
- static char * browcmd [] = { "surf" , "http ://www.google .com" , NULL };
42
+ static char * browcmd [] = { "surf" , "https ://startpage .com" , NULL };
43
43
44
44
/* KEY ALIASES
45
45
* In general, one shortcut key should exist per alias. For more key
Original file line number Diff line number Diff line change 1
1
/* See LICENSE file for license details. */
2
+ #include <sys/wait.h>
2
3
#include <unistd.h>
3
4
#include <xcb/xcb.h>
4
5
#include <xcb/xcb_keysyms.h>
@@ -32,8 +33,13 @@ static void spawn(char **com) {
32
33
close (scre -> root );
33
34
}
34
35
setsid ();
36
+ if (fork () != 0 ) {
37
+ _exit (0 );
38
+ }
35
39
execvp ((char * )com [0 ], (char * * )com );
40
+ _exit (0 );
36
41
}
42
+ wait (NULL );
37
43
}
38
44
39
45
static void handleButtonPress (xcb_generic_event_t * ev ) {
@@ -256,7 +262,7 @@ static int strcmp_c(char * str1, char * str2) {
256
262
int main (int argc , char * argv []) {
257
263
int ret = 0 ;
258
264
if ((argc == 2 ) && (strcmp_c ("-v" , argv [1 ]) == 0 )) {
259
- ret = die ("xwm-0.1.1 , © 2020 Michael Czigler, see LICENSE for details\n" );
265
+ ret = die ("xwm-0.1.2 , © 2020 Michael Czigler, see LICENSE for details\n" );
260
266
}
261
267
if ((ret == 0 ) && (argc != 1 )) {
262
268
ret = die ("usage: xwm [-v]\n" );
You can’t perform that action at this time.
0 commit comments