summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruint23 <[email protected]>2025-04-26 11:00:01 +0100
committeruint23 <[email protected]>2025-04-26 11:00:01 +0100
commitdf7b1650605d302e6bde0a36e446878fac974781 (patch)
tree7050dd6aeb613d1b91dda0bee91a92a210cfbe26
parentc58a8747d39c0056497dcac83a7852a1dd3a9cee (diff)
fixed quit syntax & free cursor on exit
-rw-r--r--src/sxwm.c6
1 files changed, 5 insertions, 1 deletions
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...");
}