aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xchord.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/xchord.c b/xchord.c
index f8fc70b..970c141 100644
--- a/xchord.c
+++ b/xchord.c
@@ -82,10 +82,7 @@ main(int argc, char *argv[])
/* 1 pressed + 3 pressed + 3 released (third step) */
if(p == 2 && rev->detail == 3){
p = 3;
- if(vfork() == 0){
- execlp("dwim", "dwim", NULL);
- err(1, "execlp");
- }
+ system("dwim");
}
/* 1 released (reset) */
if((p == 1 || p == 3) && rev->detail == 1) p = 0;