## Popup

Popup — Popup window tools.

## Synopsis

    int         gpe_get_win_position            (Display *dpy,
                                                 Window win,
                                                 int *x,
                                                 int *y);
    void        gpe_popup_menu_position         (GtkMenu *menu,
                                                 gint *x,
                                                 gint *y,
                                                 gboolean *push,
                                                 gpointer p);

## Description

Functions used for popup and dock windows.

## Details

### gpe_get_win_position ()

    int         gpe_get_win_position            (Display *dpy,
                                                 Window win,
                                                 int *x,
                                                 int *y);

Return a window's position.

`dpy` : | Display
`win` : | Window to query for position
`x` : | Pointer to X position
`y` : | Pointer to Y position
Returns : | TRUE on success, FALSE otherwise.

### gpe_popup_menu_position ()

    void        gpe_popup_menu_position         (GtkMenu *menu,
                                                 gint *x,
                                                 gint *y,
                                                 gboolean *push,
                                                 gpointer p);

This functions is used to determine a popup menu's position on screen. This is usually used for constructing popup menus.

`menu` : | Popup menu to get position of.
`x` : | Pointer to X position
`y` : | Pointer to Y position
`push` : | (unused)
`p` : | Widget

## See Also

Used by: minilite, minimix