zxdg_exporter_v1¤
wayland.zxdg_exporter_v1 ¤
Interface for exporting surfaces
A global interface used for exporting surfaces that can later be imported using xdg_importer.
Methods:
destroy ¤
destroy() -> None
Destroy the xdg_exporter object
Notify the compositor that the xdg_exporter object will no longer be used.
export ¤
export(surface: wl_surface) -> zxdg_exported_v1
Export a surface
The export 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_surface surfaces may be exported.
Parameters:
-
(surface¤wl_surface) –The surface to export
Returns:
-
zxdg_exported_v1(zxdg_exported_v1) –The created object