When X server code receives an event concerning a window, X server code sends the event to the widget for the window. 그러면 위젯은 이벤트에 필요한 작업을 수행합니다. Among the actions may be invocation of a callback function.