Also, other graphics drivers such as winemac.drv return TRUE for ProcessEvents() as long as there is a macOS event. So it doesn't need to check if a function queues a message before returning TRUE. With the current architecture in winex11.drv, we have to be sure that an event handler doesn't queue any messages before returning FALSE, which may be hard to tell as the case reported here. So we might want to change the way X11DRV_ProcessEvents() returns 'queued' status to what winemac.drv does.