Ejemplo n.º 1
0
void xwindow_get_sizehints(Window win, XSizeHints *hints)
{
    int minh, minw;
    long supplied=0;
    
    memset(hints, 0, sizeof(*hints));
    XGetWMNormalHints(ioncore_g.dpy, win, hints, &supplied);
    
    xsizehints_sanity_adjust(hints);
}
Ejemplo n.º 2
0
int xwindow_get_sizehints(Window win, XSizeHints *hints)
{
    long supplied=0;
    
    if (XGetWMNormalHints(ioncore_g.dpy, win, hints, &supplied)!=0){
        xsizehints_sanity_adjust(hints);
        return 0;
    }else{
        memset(hints, 0, sizeof(*hints));
        return -1;
    }
}