Go to index / Go to protocols

overlay_prioritizer ↗

overlay_prioritizer
overlay_prioritizer

Version 1

overlay hint prioritization

The global interface exposing overlay delegated prioritization hint capabilities is used to instantiate an interface extension for a wl_surface object. This extended interface will then allow delegated overlay prioritization of the surface.

overlay_prioritizer
request destroy()
Destructor

    Destroy the overlay prioritizer.

    Informs the server that the client will not be using this protocol object anymore. This does not affect any other objects, prioritizer objects included.

    overlay_prioritizer
    enum error {
        overlay_hinted_surface_exists = 0,
    }
    • overlay_hinted_surface_exists — the surface already has a prioritizer object associated
    overlay_prioritizer
    request get_overlay_prioritized_surface(
        id: new_id<overlay_prioritized_surface>,
        surface: object<wl_surface>,
    )
    • id — the new prioritized interface id
    • surface — the surface

    extend surface interface for overlay prioritization hint

    Instantiate an interface extension for the given wl_surface to add support for overlay prioritization hinting. If the given wl_surface already has a prioritization object associated, the delegate_exists protocol error is raised.

    overlay_prioritizer
    overlay_prioritized_surface

    Version 1

    delegate overlay prioritization hint of a wl_surface

    An additional interface to a wl_surface object, which allows the client to specify hints for the overlay prioritization of the surface.

    overlay_prioritized_surface
    request destroy()
    Destructor

      remove overlay prioritization the surface

      The associated wl_surface's overlay prioritization is removed. The change is applied on the next wl_surface.commit.

      overlay_prioritized_surface
      enum error {
          bad_value = 0,
          no_surface = 1,
      }
      • bad_value — negative values in radius or size
      • no_surface — the wl_surface was destroyed
      overlay_prioritized_surface
      enum overlay_priority {
          none = 0,
          regular = 1,
          preferred_low_latency_canvas = 2,
          required_hardware_protection = 3,
      }
      • none — overlay promotion is not necessary for this surface
      • regular — surface could be considered as a candidate for promotion
      • preferred_low_latency_canvas — the surface is a low latency canvas that works better if promoted to overlay
      • required_hardware_protection — the surface contains protected content and requires to be promoted to overlay

      hints for overlay prioritization

      overlay_prioritized_surface
      request set_overlay_priority(
          priority: uint,
      )

        set the surface overlay priority