summaryrefslogtreecommitdiff
path: root/app/cwm/calmwm.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2012-10-31 19:30:20 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2012-10-31 19:30:20 +0000
commit17cb53f9b11452cfdeefa8e6cb8e2d749aaa22ad (patch)
treef1abb4670fd1f503cea2dd7e67ad4c1d2da9010b /app/cwm/calmwm.c
parent39ac1b1cfdfa103f5959bb2c021f5dbf9d0db26b (diff)
replace 'reload' with 'restart', which merely re-exec's cwm using the
existing argv; same idea with respect to argv saving as Alexander Polakov. reload support was half-complete and is getting in the way. agreed to by many
Diffstat (limited to 'app/cwm/calmwm.c')
-rw-r--r--app/cwm/calmwm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/cwm/calmwm.c b/app/cwm/calmwm.c
index a9a7cd2f0..c327eba25 100644
--- a/app/cwm/calmwm.c
+++ b/app/cwm/calmwm.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: calmwm.c,v 1.65 2012/08/07 14:05:49 okan Exp $
+ * $OpenBSD: calmwm.c,v 1.66 2012/10/31 19:30:19 okan Exp $
*/
#include <sys/param.h>
@@ -34,6 +34,7 @@
#include "calmwm.h"
+char **cwm_argv;
Display *X_Dpy;
Cursor Cursor_default;
@@ -67,6 +68,7 @@ main(int argc, char **argv)
warnx("no locale support");
mbtowc(NULL, NULL, MB_CUR_MAX);
+ cwm_argv = argv;
while ((ch = getopt(argc, argv, "c:d:")) != -1) {
switch (ch) {
case 'c':