Lines Matching refs:hints
58 XSizeHints hints;
63 if (!XGetWMNormalHints(dpy, window, &hints, &longjunk))
65 if (!(hints.flags & PResizeInc))
67 if (hints.width_inc == 0 || hints.height_inc == 0)
69 if (!(hints.flags & (PBaseSize|PMinSize)))
71 if (hints.flags & PBaseSize)
73 win_attributes.width -= hints.base_width;
74 win_attributes.height -= hints.base_height;
77 win_attributes.width -= hints.min_width;
78 win_attributes.height -= hints.min_height;
80 *p_width = win_attributes.width / hints.width_inc;
81 *p_height = win_attributes.height / hints.height_inc;