Go to index / Go to protocols

hyprland_toplevel_mapping_v1 ↗

mapping of toplevels to windows

This protocol allows clients to retrieve the mapping of toplevels to hyprland window addresses.

hyprland_toplevel_mapping_v1
hyprland_toplevel_mapping_manager_v1

Version 1
Compositor Support
Version 1
hyprland 0.52.1

manager to request toplevel mappings

This object is a manager which offers requests to retrieve a window address for a toplevel.

hyprland_toplevel_mapping_manager_v1
request get_window_for_toplevel(
    handle: new_id<hyprland_toplevel_window_mapping_handle_v1>,
    toplevel: object<ext_foreign_toplevel_handle_v1>,
)
  • toplevel — toplevel to get the window address for

get window address for toplevel

Get the window address for a toplevel.

hyprland_toplevel_mapping_manager_v1
request get_window_for_toplevel_wlr(
    handle: new_id<hyprland_toplevel_window_mapping_handle_v1>,
    toplevel: object<zwlr_foreign_toplevel_handle_v1>,
)
  • toplevel — wlr toplevel to get the window address for

get window address for wlr toplevel

Get the window address for a wlr toplevel.

hyprland_toplevel_mapping_manager_v1
request destroy()
Destructor

    destroy the manager

    All objects created by the manager will still remain valid, until their appropriate destroy request has been called.

    hyprland_toplevel_mapping_v1
    hyprland_toplevel_window_mapping_handle_v1

    Version 1

    toplevel to window mapping

    This object represents a mapping of a (wlr) toplevel to a window address.

    Once created, the window_address event will be sent containing the address of the window associated with the toplevel. Should the mapping fail, the failed event will be sent.

    hyprland_toplevel_window_mapping_handle_v1
    event window_address(
        address_hi: uint,
        address: uint,
    )
    • address_hi — upper 32 bits of the window address
    • address — lower 32 bits of the window address

    address of the window

    The full 64bit window address. The address field contains the lower 32 bits whilst the address_hi contains the upper 32 bits

    hyprland_toplevel_window_mapping_handle_v1
    event failed()

      mapping failed

      The mapping of the toplevel to a window address failed. Most likely the window does not exist (anymore).

      hyprland_toplevel_window_mapping_handle_v1
      request destroy()
      Destructor

        destroy handle

        Destroy the handle. This request can be sent at any time by the client.