summary refs log tree commit diff
diff options
context:
space:
mode:
authoroga <oga>2008-02-20 13:00:18 +0000
committeroga <oga>2008-02-20 13:00:18 +0000
commitde36e6ec2fe85d353a9c18110316530f4054e207 (patch)
treef3894030cb17307b448baa8f81f62f541733b7e6
parent7ef6f635573761f8f54f6736a07f55198aa9e3e7 (diff)
downloadcwm-de36e6ec2fe85d353a9c18110316530f4054e207.tar.gz
cwm-de36e6ec2fe85d353a9c18110316530f4054e207.tar.xz
cwm-de36e6ec2fe85d353a9c18110316530f4054e207.zip
add exec_wm to calmwm.h, it was missing (bad ian@!)
Also, exec_wm() currenty err()s out if something failed with the exec,
killing the currently running wm. This is bad. Replace the err() with
warn() instead.


from Gleydson Soares, thanks!
-rw-r--r--calmwm.h1
-rw-r--r--util.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/calmwm.h b/calmwm.h
index 118ad32..631901d 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -396,6 +396,7 @@ int dirent_exists(char *);
 int dirent_isdir(char *);
 int dirent_islink(char *);
 int u_spawn(char *);
+void exec_wm(char *);
 
 void  grab_sweep(struct client_ctx *);
 void  grab_drag(struct client_ctx *);
diff --git a/util.c b/util.c
index c7f5ea8..792129d 100644
--- a/util.c
+++ b/util.c
@@ -62,7 +62,7 @@ exec_wm(char *argstr)
 	*ap = NULL;
 	setsid();
 	execvp(args[0], args);
-	err(1, args[0]);
+	warn(args[0]);
 }
 
 int dirent_isdir(char *filename) {