Skip to content

zxdg_exporter_v2¤

wayland.zxdg_exporter_v2 ¤

Interface for exporting surfaces

A global interface used for exporting surfaces that can later be imported using xdg_importer.

Methods:

error ¤

Error values

These errors can be emitted in response to invalid xdg_exporter requests.

destroy ¤

destroy() -> None

Destroy the xdg_exporter object

Notify the compositor that the xdg_exporter object will no longer be used.

export_toplevel ¤

export_toplevel(surface: wl_surface) -> zxdg_exported_v2

Export a toplevel surface

The export_toplevel request exports the passed surface so that it can later be imported via xdg_importer. When called, a new xdg_exported object will be created and xdg_exported.handle will be sent immediately. See the corresponding interface and event for details.

    A surface may be exported multiple times, and each exported handle may
    be used to create an xdg_imported multiple times. Only xdg_toplevel
    equivalent surfaces may be exported, otherwise an invalid_surface
    protocol error is sent.

Parameters:

Returns: