diff options
| author | dehroox <dehrexd@gmail.com> | 2025-09-01 11:02:37 +0800 |
|---|---|---|
| committer | dehroox <dehrexd@gmail.com> | 2025-09-01 11:07:33 +0800 |
| commit | 224dcfd6b414c07e381887632c9f512950f399a8 (patch) | |
| tree | 68f7ae290ff3076b8c67c7f2362d286c36f617c3 | |
| parent | a9aed1de914ba587843dca86a735a1dd25119dc7 (diff) | |
fix errx exit codes
| -rw-r--r-- | src/sxwm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |
