From aa8a0af14fe4ce4d8e7d331c25cb3a6d49f9765e Mon Sep 17 00:00:00 2001 From: deuce <> Date: Sat, 10 Mar 2018 09:50:32 +0000 Subject: [PATCH] Don't start the mouse thread until after video init is successful. Prevents x11 mouse thread from running when ciolib falls back past it (ie: to curses mode) --- src/conio/x_cio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conio/x_cio.c b/src/conio/x_cio.c index 9198341192..7ff37130ad 100644 --- a/src/conio/x_cio.c +++ b/src/conio/x_cio.c @@ -430,7 +430,6 @@ int x_init(void) } _beginthread(x11_event_thread,1<<16,NULL); - _beginthread(x11_mouse_thread,1<<16,NULL); sem_wait(&init_complete); if(!x11_initialized) { xp_dlclose(dl); @@ -441,6 +440,7 @@ int x_init(void) pthread_mutex_destroy(©buf_mutex); return(-1); } + _beginthread(x11_mouse_thread,1<<16,NULL); cio_api.options |= CONIO_OPT_SET_TITLE | CONIO_OPT_SET_NAME | CONIO_OPT_SET_ICON; return(0); } -- GitLab