diff options
author | uint23 <[email protected]> | 2025-04-26 11:00:01 +0100 |
---|---|---|
committer | uint23 <[email protected]> | 2025-04-26 11:00:01 +0100 |
commit | df7b1650605d302e6bde0a36e446878fac974781 (patch) | |
tree | 7050dd6aeb613d1b91dda0bee91a92a210cfbe26 /src | |
parent | c58a8747d39c0056497dcac83a7852a1dd3a9cee (diff) |
fixed quit syntax & free cursor on exit
Diffstat (limited to 'src')
-rw-r--r-- | src/sxwm.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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..."); } |