Skip to content

zxdg_exported_v2¤

wayland.zxdg_exported_v2 ¤

An exported surface handle

An xdg_exported object represents an exported reference to a surface. The exported surface may be referenced as long as the xdg_exported object not destroyed. Destroying the xdg_exported invalidates any relationship the importer may have established using xdg_imported.

Methods:

  • destroy

    Unexport the exported surface

  • on_handle

    The exported surface handle.

events

handle ¤

handle(handle: str) -> None

The exported surface handle

The handle event contains the unique handle of this exported surface reference. It may be shared with any client, which then can use it to import the surface by calling xdg_importer.import_toplevel. A handle may be used to import the surface multiple times.

Parameters:

  • handle ¤

    (str) –

    The exported surface handle

destroy ¤

destroy() -> None

Unexport the exported surface

Revoke the previously exported surface. This invalidates any relationship the importer may have set up using the xdg_imported created given the handle sent via xdg_exported.handle.

on_handle ¤

on_handle(handle: str) -> None

The exported surface handle.

Override to handle wayland.zxdg_exported_v2.events.handle.