3 ms·
Xlib has an event loop at the core, but if you write your client directly to the socket protocol, you can arrange it however you like.
by toast0 10y ago
Xlib has an event loop at the core, but if you write your client directly to the socket protocol, you can arrange it however you like.
- pacaro 10y agoYou could probably do the same with PeekMessage in win32, maybe call it periodically in a green threading library, or similar. But the most common mechanism is an event loop. I'm sure people have developed X applications that talk the protocol directly, but it isn't the typical way to do it.