summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordehroox <dehrexd@gmail.com>2025-09-01 11:02:37 +0800
committerdehroox <dehrexd@gmail.com>2025-09-01 11:07:33 +0800
commit224dcfd6b414c07e381887632c9f512950f399a8 (patch)
tree68f7ae290ff3076b8c67c7f2362d286c36f617c3 /src
parenta9aed1de914ba587843dca86a735a1dd25119dc7 (diff)
fix errx exit codes
Diffstat (limited to 'src')
-rw-r--r--src/sxwm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sxwm.c b/src/sxwm.c
index 57be734..8e8e045 100644
--- a/src/sxwm.c
+++ b/src/sxwm.c
@@ -1678,10 +1678,10 @@ void other_wm(void)
int other_wm_err(Display *d, XErrorEvent *ee)
{
- errx(0, "can't start because another window manager is already running");
- return 0;
(void)d;
(void)ee;
+ errx(1, "can't start because another window manager is already running");
+ return 0;
}
long parse_col(const char *hex)
@@ -1983,7 +1983,7 @@ void send_wm_take_focus(Window w)
void setup(void)
{
if ((dpy = XOpenDisplay(NULL)) == False) {
- errx(0, "can't open display.\nquitting...");
+ errx(1, "can't open display.\nquitting...");
}
root = XDefaultRootWindow(dpy);