Function XdgPositioner.setAnchorRect

set the anchor rectangle within the parent surface

void setAnchorRect (
  int x,
  int y,
  int width,
  int height
);

Specify the anchor rectangle within the parent surface that the child surface will be placed relative to. The rectangle is relative to the window geometry as defined by xdg_surface.set_window_geometry of the parent surface.

When the xdg_positioner object is used to position a child surface, the anchor rectangle may not extend outside the window geometry of the positioned child's parent surface.

If a negative size is set the invalid_input error is raised.