summaryrefslogtreecommitdiff
path: root/src/sxwm.c
diff options
context:
space:
mode:
authoruint <abhinav.prsai@gmail.com>2025-12-04 09:44:00 +0000
committeruint <abhinav.prsai@gmail.com>2025-12-04 09:44:00 +0000
commit0c4e89d73ec59cdbdf4d31bc71d3cf519445f15d (patch)
tree53f682b103f16509f1111532daa7ef5ae884bd43 /src/sxwm.c
parent01bef12e252848293709682fff8d4d4e13183b83 (diff)
free cursors before closing dpy
Diffstat (limited to 'src/sxwm.c')
-rw-r--r--src/sxwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sxwm.c b/src/sxwm.c
index 23a5544..934f87a 100644
--- a/src/sxwm.c
+++ b/src/sxwm.c
@@ -1943,10 +1943,10 @@ void quit(void)
*/
XSync(dpy, False);
- XCloseDisplay(dpy);
XFreeCursor(dpy, cursor_move);
XFreeCursor(dpy, cursor_normal);
XFreeCursor(dpy, cursor_resize);
+ XCloseDisplay(dpy);
puts("quitting...");
running = False;
}