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:
-
destroy
–Destroy the
xdg_exporter
object -
export_toplevel
–Export a toplevel surface
error ¤
Error values
These errors can be emitted in response to invalid xdg_exporter requests.
-
invalid_surface
–Surface is not an `xdg_toplevel`
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:
-
surface
¤wl_surface
) –The surface to export
Returns:
-
zxdg_exported_v2
(zxdg_exported_v2
) –The created object