callling XCloseDisplay causes coredump: remove call

This commit is contained in:
F. Duncanh
2025-11-17 14:46:23 -05:00
parent d881c8e841
commit 8b8407b951
2 changed files with 6 additions and 3 deletions

View File

@@ -49,9 +49,12 @@ static void get_X11_Display(X11_Window_t * X11, char *display_name) {
}
static int free_X11_Display(X11_Window_t *X11) {
if (X11->display) {
XCloseDisplay(X11->display);
X11->display = NULL;
X11->window = (Window) NULL;
}
}
static Window enum_windows(const char * str, Display * display, Window window, int depth) {
int i;