问题 I'm trying to create a multithreaded opengl application with libx11 - with one separate thread per window, and one manager thread. I have an event loop in the manager thread: while(true) while(XQLength(mPlatformData->display)){ XNextEvent(mPlatformData->display, &event); std::cout << "event" << std::endl; } } This is a great event loop for single threaded applications, but with this multithreaded setup strange things happen. When I'm creating a window, I need to disable the event queue, or