docs: Improve the text of X11 event-related functions
We need to make sure that people disabling event handling in Clutter call clutter_x11_handle_event() to update Clutter's internal state.
This commit is contained in:
parent
1dee65770a
commit
99d7d31318
@ -673,12 +673,17 @@ clutter_x11_enable_xinput (void)
|
||||
}
|
||||
|
||||
/**
|
||||
* clutter_x11_disable_event_retrieval
|
||||
* clutter_x11_disable_event_retrieval:
|
||||
*
|
||||
* Disables retrieval of X events in the main loop. Use to create event-less
|
||||
* canvas or in conjunction with clutter_x11_handle_event.
|
||||
* Disables the internal handling of X11 events in the main loop.
|
||||
*
|
||||
* This function can only be called before calling clutter_init().
|
||||
* Libraries or applications calling this function will be responsible of
|
||||
* handling all X11 events.
|
||||
*
|
||||
* You also must call clutter_x11_handle_event() to let Clutter process
|
||||
* events and maintain its internal state.
|
||||
*
|
||||
* <note>This function can only be called before calling clutter_init().</note>
|
||||
*
|
||||
* Since: 0.8
|
||||
*/
|
||||
@ -696,7 +701,7 @@ clutter_x11_disable_event_retrieval (void)
|
||||
}
|
||||
|
||||
/**
|
||||
* clutter_x11_has_event_retrieval
|
||||
* clutter_x11_has_event_retrieval:
|
||||
*
|
||||
* Queries the X11 backend to check if event collection has been disabled.
|
||||
*
|
||||
|
@ -1099,7 +1099,11 @@ events_queue (ClutterBackend *backend)
|
||||
* @xevent: pointer to XEvent structure
|
||||
*
|
||||
* This function processes a single X event; it can be used to hook
|
||||
* into external X event retrieval (for example that done by GDK).
|
||||
* into external X11 event processing (for example, a GDK filter
|
||||
* function).
|
||||
*
|
||||
* If clutter_x11_disable_event_retrieval() has been called, you must
|
||||
* let this function process events to update Clutter's internal state.
|
||||
*
|
||||
* Return value: #ClutterX11FilterReturn. %CLUTTER_X11_FILTER_REMOVE
|
||||
* indicates that Clutter has internally handled the event and the
|
||||
|
Loading…
Reference in New Issue
Block a user