Go to index / Go to protocols

aura_output_management ↗

aura_output_management
zaura_output_manager_v2

Version 1

aura output manager singleton

A global responsible for propagating atomic output configuration changes to clients. An output configuration is a union of added / removed outputs and updated output metrics.

Added outputs arrive at the client as wl_registry.global events, removed outputs as wl_registry.global_remove events and updated output metrics as a sequence of events defined on the zaura_output_manager_v2 interface. This is followed by the manager's done event which signals the end of the transaction.

The change should be processed by clients in a way that transitions from one output configuration state to another without exposing the intermediate output state to the rest of the application.

Participating servers should emit the zaura_output_manager_v2 global before any wl_output globals in the sequence of wl_registry.global events.

Participating clients should bind the zaura_output_manager_v2 before any wl_output globals. This ordering is required to ensure clients receive all necessary output configuration information before receiving any further server events that may reference bound wl_outputs.

Clients can expect that all events comprising a configuration change are sent synchronously, one after the other, before any other server events that leverage the output as an event param.

zaura_output_manager_v2
event done()
Available since version 1

    sent all information about the output configuration change

    This event is sent after all added, changed and removed output events for a given wl_output have been dispatched to the client.

    zaura_output_manager_v2
    event display_id(
        output_name: uint,
        display_id_hi: uint,
        display_id_lo: uint,
    )
    Available since version 1

      advertise the output's display id

      This event describes the 64bit display id assigned to each display by ChromeOS. The value is opaque and should not be interpreted.

      The event is sent immediately after the wl_registry.global event for the output and subsequently in latter display configuration changes.

      zaura_output_manager_v2
      event logical_position(
          output_name: uint,
          x: int,
          y: int,
      )
      Available since version 1
      • x — x position within the global compositor space
      • y — y position within the global compositor space

      position of the output within the global compositor space

      The position event describes the location of the wl_output within the global compositor space.

      The event is sent immediately after the wl_registry.global event for the output and subsequently in latter display configuration changes.

      zaura_output_manager_v2
      event logical_size(
          output_name: uint,
          width: int,
          height: int,
      )
      Available since version 1
      • width — width in global compositor space
      • height — height in global compositor space

      size of the output in the global compositor space

      The logical_size event describes the logical size of the output in the global compositor space.

      The event is sent immediately after the wl_registry.global event for the output and subsequently in latter display configuration changes.

      zaura_output_manager_v2
      event physical_size(
          output_name: uint,
          width: int,
          height: int,
      )
      Available since version 1
      • width — width in global compositor space
      • height — height in global compositor space

      size of the output in pixels

      The physical resolution of the display in pixels. The value should not include any overscan insets or display rotation, except for any panel orientation adjustment.

      The event is sent immediately after the wl_registry.global event for the output and subsequently in latter display configuration changes.

      zaura_output_manager_v2
      event work_area_insets(
          output_name: uint,
          top: int,
          left: int,
          bottom: int,
          right: int,
      )
      Available since version 1

        advertise the work area insets for the output

        This event describes the work area insets for the output in logical screen coordinates, from which the work area can be calculated.

        The event is sent when binding to the output object and subsequently as output state changes.

        zaura_output_manager_v2
        event device_scale_factor(
            output_name: uint,
            device_scale_factor: uint,
        )
        Available since version 1
        • device_scale_factor — display scale factor, in float format

        advertise device scale factor for the output

        The scale factor of the output device. We reinterpret_cast the float scale factor into a 32-bit uint and later cast back into a float. This is because wayland does not support native transport of floats. As different CPU architectures may use different endian representations for IEEE 754 floats, this protocol implicitly assumes that the caller and receiver are the same machine.

        The event is sent immediately after the wl_registry.global event for the output and subsequently in latter display configuration changes.

        zaura_output_manager_v2
        event logical_transform(
            output_name: uint,
            transform: int<wl_output.transform>,
        )
        Available since version 1
        • transform — transform that maps framebuffer to output

        logical transform of the output

        This event describes the logical transform for the output. Whereas panel transform corresponds to the display's panel rotation, the logical transform corresponds to the display's logical rotation.

        The event is sent immediately after the wl_registry.global event for the output and subsequently in latter display configuration changes.

        zaura_output_manager_v2
        event panel_transform(
            output_name: uint,
            transform: int<wl_output.transform>,
        )
        Available since version 1
        • transform — transform that maps framebuffer to output

        panel transform of the output

        This event describes the panel transform for the output, which is the associated display's panel rotation.

        The event is sent immediately after the wl_registry.global event for the output and subsequently in latter display configuration changes.

        zaura_output_manager_v2
        event name(
            output_name: uint,
            name: string,
        )
        Available since version 1
        • name — output name

        human-readable name of this output

        The name is a UTF-8 string with no convention defined for its contents.

        The event is sent immediately after the wl_registry.global event for the output and subsequently in latter display configuration changes.

        zaura_output_manager_v2
        event description(
            output_name: uint,
            description: string,
        )
        Available since version 1
        • description — output description

        human-readable description of this output

        The description is a UTF-8 string with no convention defined for its contents.

        The event is sent immediately after the wl_registry.global event for the output and subsequently in latter display configuration changes.

        zaura_output_manager_v2
        event overscan_insets(
            output_name: uint,
            top: int,
            left: int,
            bottom: int,
            right: int,
        )
        Available since version 1

          advertise the overscan insets for the output

          This event describes the overscan insets for the output in physical pixels.

          The event is sent immediately after the wl_registry.global event for the output and subsequently in latter display configuration changes.

          zaura_output_manager_v2
          event activated(
              output_name: uint,
          )
          Available since version 1

            target display for new windows

            Notifies that this output is now active output. It is typically used as a target when a new window is created without specific bounds.