ET++: Stepping through a left mouse click in a button

This dispatches one operating system event. This is a particular implementation for the Unix operating system, and it may be implemented differently in other subclasses of System. The Unix version calls XInputHandler::Notify() to notify the windowing system that it should check for and handle events now.

void UnixSystem::DispatchOneEvent()
{
	for (;;) {
		if (gXDisplay && gXDisplay->Notify())
			return;
	
	[ ... asynchronous disk access code ... ]
		}
		
	[ ... code for timers ... ]

	[ ... more read/write code ... ]

}

Back to the method call sequence