Data Fields
xdg_popup_listener Struct Reference

Data Fields

void(* configure )(void *data, struct xdg_popup *xdg_popup, int32_t x, int32_t y, int32_t width, int32_t height)
 configure the popup surface More...
 
void(* popup_done )(void *data, struct xdg_popup *xdg_popup)
 popup interaction is done More...
 

Field Documentation

◆ configure

void(* xdg_popup_listener::configure)(void *data, struct xdg_popup *xdg_popup, int32_t x, int32_t y, int32_t width, int32_t height)

configure the popup surface

This event asks the popup surface to configure itself given the configuration. The configured state should not be applied immediately. See xdg_surface.configure for details.

The x and y arguments represent the position the popup was placed at given the xdg_positioner rule, relative to the upper left corner of the window geometry of the parent surface.

Parameters
xx position relative to parent surface window geometry
yy position relative to parent surface window geometry
widthwindow geometry width
heightwindow geometry height

◆ popup_done

void(* xdg_popup_listener::popup_done)(void *data, struct xdg_popup *xdg_popup)

popup interaction is done

The popup_done event is sent out when a popup is dismissed by the compositor. The client should destroy the xdg_popup object at this point.