From df7b1650605d302e6bde0a36e446878fac974781 Mon Sep 17 00:00:00 2001 From: uint23 Date: Sat, 26 Apr 2025 11:00:01 +0100 Subject: fixed quit syntax & free cursor on exit --- src/sxwm.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sxwm.c b/src/sxwm.c index f05971c..1c8fb74 100644 --- a/src/sxwm.c +++ b/src/sxwm.c @@ -941,7 +941,8 @@ parse_col(const char *hex) return col.pixel; } -void quit (void) +void +quit(void) { for (int ws = 0; ws < NUM_WORKSPACES; ++ws) { for (Client *c = workspaces[ws]; c; c = c->next) { @@ -951,6 +952,9 @@ void quit (void) } XSync(dpy, False); XCloseDisplay(dpy); + XFreeCursor(dpy, c_move); + XFreeCursor(dpy, c_normal); + XFreeCursor(dpy, c_resize); errx(0, "quitting..."); } -- cgit v1.2.3