disable_event_retrieval ()
  enable_xinput ()
  event_get_key_group (event)
  event_sequence_get_touch_detail (sequence)
  get_default_display ()
  get_default_screen ()
  get_input_devices ()
  get_stage_from_window (win)
  get_use_argb_visual ()
  get_use_stereo_stage ()
  handle_event (xevent)
  has_composite_extension ()
  has_event_retrieval ()
  has_xinput ()
  set_display (xdpy)
  set_stage_foreign (stage, xwindow)
  set_use_argb_visual (use_argb)
  set_use_stereo_stage (use_stereo)
  trap_x_errors ()
  untrap_x_errors ()



Disables the internal polling of X11 events in the main loop.

Libraries or applications calling this function will be responsible of polling all X11 events.

You also must call ClutterX11.handle_event() to let Clutter process events and maintain its internal state.

This function can only be called before calling Clutter.init().

Even with event handling disabled, Clutter will still select all the events required to maintain its internal state on the stage Window; compositors using Clutter and input regions to pass events through to application windows should not rely on an empty input region, and should instead clear it themselves explicitly using the XFixes extension.

This function should not be normally used by applications.

New in version 0.8.


Enables the use of the XInput extension if present on connected XServer and support built into Clutter. XInput allows for multiple pointing devices to be used.

This function must be called before Clutter.init().

Since XInput might not be supported by the X server, you might want to use ClutterX11.has_xinput() to see if support was enabled.

New in version 0.8.

Deprecated since version 1.14: This function does not do anything; XInput support is enabled by default in Clutter. Use the CLUTTER_DISABLE_XINPUT environment variable to disable XInput support and use Xlib core events instead.

Parameters:event (Clutter.Event) – a Clutter.Event of type Clutter.EventType.KEY_PRESS or Clutter.EventType.KEY_RELEASE
Returns:the group id
Return type:int

Retrieves the group for the modifiers set in event

New in version 1.4.

Parameters:sequence (Clutter.EventSequence) – a Clutter.EventSequence
Returns:the touch detail
Return type:int

Retrieves the touch detail froma Clutter.EventSequence.

New in version 1.12.

Returns:the default display
Return type:xlib.Display

Retrieves the pointer to the default display.

New in version 0.6.

Returns:the number of the default screen
Return type:int

Gets the number of the default X xlib.Screen object.

New in version 0.6.

Returns:a pointer to the internal list of input devices; the returned list is owned by Clutter and should not be modified or freed
Return type:[Clutter.InputDevice]

Retrieves a pointer to the list of input devices

New in version 0.8.

Deprecated since version 1.2: Use Clutter.DeviceManager.peek_devices() instead

Parameters:win (int) – an X Window ID
Returns:A Clutter.Stage, or% None if a stage does not exist for the window
Return type:Clutter.Stage

Gets the stage for a particular X window.

New in version 0.8.

Returns:True if ARGB visuals are queried by default
Return type:bool

Retrieves whether the Clutter X11 backend is using ARGB visuals by default

New in version 1.2.

Returns:True if stereo stages are used if possible
Return type:bool

Retrieves whether the Clutter X11 backend will create stereo stages if possible.

New in version 1.22.

Parameters:xevent (xlib.XEvent) – pointer to xlib.XEvent structure
Returns:ClutterX11.FilterReturn. ClutterX11.FilterReturn.REMOVE indicates that Clutter has internally handled the event and the caller should do no further processing. ClutterX11.FilterReturn.CONTINUE indicates that Clutter is either not interested in the event, or has used the event to update internal state without taking any exclusive action. ClutterX11.FilterReturn.TRANSLATE will not occur.
Return type:ClutterX11.FilterReturn

This function processes a single X event; it can be used to hook into external X11 event processing (for example, a GDK filter function).

If ClutterX11.disable_event_retrieval() has been called, you must let this function process events to update Clutter’s internal state.

New in version 0.8.

Returns:True if the XComposite extension is available
Return type:bool

Retrieves whether Clutter is running on an X11 server with the XComposite extension

Returns:True if event retrival has been disabled. False otherwise.
Return type:bool

Queries the X11 backend to check if event collection has been disabled.

New in version 0.8.

Returns:True if Clutter was compiled with XInput support and XInput support is available at run time.
Return type:bool

Gets whether Clutter has XInput support.

New in version 0.8.

Parameters:xdpy (xlib.Display) – pointer to a X display connection.

Sets the display connection Clutter should use; must be called before Clutter.init(), Clutter.init_with_args() or other functions pertaining Clutter’s initialization process.

If you are parsing the command line arguments by retrieving Clutter’s GLib.OptionGroup with clutter_get_option_group() and calling GLib.OptionContext.parse() yourself, you should also call ClutterX11.set_display() before GLib.OptionContext.parse().

New in version 0.8.

ClutterX11.set_stage_foreign(stage, xwindow)

True if foreign window is valid

Return type:


Target the Clutter.Stage to use an existing external X Window

New in version 0.4.

Parameters:use_argb (bool) – True if ARGB visuals should be requested by default

Sets whether the Clutter X11 backend should request ARGB visuals by default or not.

By default, Clutter requests RGB visuals.

If no ARGB visuals are found, the X11 backend will fall back to requesting a RGB visual instead.

ARGB visuals are required for the Clutter.Stage :use-alpha property to work.

This function can only be called once, and before Clutter.init() is called.

New in version 1.2.

Parameters:use_stereo (bool) – True if the stereo stages should be used if possible.

Sets whether the backend object for Clutter stages, will, if possible, be created with the ability to support stereo drawing (drawing separate images for the left and right eyes).

This function must be called before Clutter.init() is called. During paint callbacks, cogl_framebuffer_is_stereo() can be called on the framebuffer retrieved by cogl_get_draw_framebuffer() to determine if stereo support was successfully enabled, and cogl_framebuffer_set_stereo_mode() to determine which buffers will be drawn to.

Note that this function *does not* cause the stage to be drawn multiple times with different perspective transformations and thus appear in 3D, it simply enables individual ClutterActors to paint different images for the left and and right eye.

New in version 1.22.


Traps every X error until ClutterX11.untrap_x_errors() is called.

New in version 0.6.

Returns:the trapped error code, or 0 for success
Return type:int

Removes the X error trap and returns the current status.

New in version 0.4.