summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2021-09-15 14:19:12 +0200
committerLouis Burda <quent.burda@gmail.com>2022-08-11 23:55:07 +0200
commit270e6de80751ae18fdde02c66d101e2bc253db2d (patch)
tree14f1a60ff007f37692979f7f21285d07cefdf4ed
parentc06c7d9714e541b9a3808200e8da381c6e9080de (diff)
downloadxsnip-270e6de80751ae18fdde02c66d101e2bc253db2d.tar.gz
xsnip-270e6de80751ae18fdde02c66d101e2bc253db2d.zip
Use exit code 1 on cancel
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 58bdbb2..d07bce4 100644
--- a/main.c
+++ b/main.c
@@ -118,7 +118,7 @@ capture(void)
ev.xkey.state & ShiftMask ? 1 : 0);
if (keysym == XK_Escape) {
deinit();
- exit(0);
+ exit(1);
}
break;
case MotionNotify: