Go to index / Go to protocols

jay_popup_ext_v1 ↗

jay_popup_ext_v1
jay_popup_ext_manager_v1

Version 1
Compositor Support
Version 1
jay 1.14.0

manager for xdg_popup extensions

This global allows clients to create jay_popup_ext_v1 extension objects for xdg_popups.

jay_popup_ext_manager_v1
request destroy()
Destructor

    destroys this manager

    This request has no effect on any created extension objects.

    jay_popup_ext_manager_v1
    request get_ext(
        id: new_id<jay_popup_ext_v1>,
        popup: object<xdg_popup>,
    )
    • id — the new jay_popup_ext_v1
    • popup — the xdg_popup

    creates a jay_popup_ext_v1 extension object

    Each xdg_popup can have at most one jay_popup_ext_v1 extension object. Sending this request while another extension object exists causes the already_exists error to be emitted.

    The extension object must be destroyed before the xdg_popup. Otherwise the has_extension error is emitted.

    jay_popup_ext_manager_v1
    enum error {
        already_exists = 1,
    }
    • already_exists — extension object already exists for the xdg_popup

    fatal error

    These fatal protocol errors may be emitted in response to invalid requests.

    jay_popup_ext_v1
    jay_popup_ext_v1

    Version 1

    xdg_popup extension object

    This object can be used to perform additional operations on an xdg_popup.

    jay_popup_ext_v1
    request destroy()
    Destructor

      destroys this extension object

      This request has no effect on ongoing operations started through this object.

      jay_popup_ext_v1
      request move(
          seat: object<wl_seat>,
          serial: uint,
      )
      • seat — the wl_seat of the user event
      • serial — the serial of the user event

      start an interactive move

      Start an interactive, user-driven move of the surface.

      This request must be used in response to some sort of user action like a button press, key press, or touch down event. The passed serial is used to determine the type of interactive move (touch, pointer, etc).

      The server may ignore move requests. For example, if the passed serial is no longer valid.

      If triggered, the surface will lose the focus of the device (wl_pointer, wl_touch, etc) used for the move. It is up to the compositor to visually indicate that the move is taking place, such as updating a pointer cursor, during the move. There is no guarantee that the device focus will return when the move is completed.

      jay_popup_ext_v1
      request resize(
          seat: object<wl_seat>,
          serial: uint,
          edges: uint<xdg_toplevel.resize_edge>,
      )
      • seat — the wl_seat of the user event
      • serial — the serial of the user event
      • edges — which edge or corner is being dragged

      start an interactive resize

      Start a user-driven, interactive resize of the surface.

      This request must be used in response to some sort of user action like a button press, key press, or touch down event. The passed serial is used to determine the type of interactive resize (touch, pointer, etc).

      The server may ignore resize requests. For example, if the passed serial is no longer valid.

      If triggered, the client will receive configure events with the expected sizes. The client must also acknowledge configure events using "ack_configure".

      If triggered, the surface also will lose the focus of the device (wl_pointer, wl_touch, etc) used for the resize. It is up to the compositor to visually indicate that the resize is taking place, such as updating a pointer cursor, during the resize. There is no guarantee that the device focus will return when the resize is completed.

      The edges parameter specifies how the surface should be resized, and is one of the values of the resize_edge enum. Values not matching a variant of the enum will cause the invalid_resize_edge protocol error. The compositor may use this information to update the surface position for example when dragging the top left corner. The compositor may also use this information to adapt its behavior, e.g. choose an appropriate cursor image.

      jay_popup_ext_v1
      enum error {
          invalid_resize_edge = 0,
          has_extension = 1,
      }
      • invalid_resize_edge — provided value is not a valid variant of the resize_edge enum
      • has_extension — the xdg_popup still has an extension object

      fatal error

      These fatal protocol errors may be emitted in response to invalid requests.