Skip to content

Commit 88a7d27

Browse files
authored
released at 0.1.2
1 parent a730ba3 commit 88a7d27

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

CHANGELOG

+8
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6868
## [0.1.1] - 2020-11-21
6969
### Added
7070
- 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+

config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
static char * termcmd[] = { "st", NULL };
4141
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 };
4343

4444
/* KEY ALIASES
4545
* In general, one shortcut key should exist per alias. For more key

xwm.c

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* See LICENSE file for license details. */
2+
#include <sys/wait.h>
23
#include <unistd.h>
34
#include <xcb/xcb.h>
45
#include <xcb/xcb_keysyms.h>
@@ -32,8 +33,13 @@ static void spawn(char **com) {
3233
close(scre->root);
3334
}
3435
setsid();
36+
if (fork() != 0) {
37+
_exit(0);
38+
}
3539
execvp((char*)com[0], (char**)com);
40+
_exit(0);
3641
}
42+
wait(NULL);
3743
}
3844

3945
static void handleButtonPress(xcb_generic_event_t * ev) {
@@ -256,7 +262,7 @@ static int strcmp_c(char * str1, char * str2) {
256262
int main(int argc, char * argv[]) {
257263
int ret = 0;
258264
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");
260266
}
261267
if ((ret == 0) && (argc != 1)) {
262268
ret = die("usage: xwm [-v]\n");

0 commit comments

Comments
 (0)