Lines Matching refs:hints
55 XSizeHints hints;
60 if (!XGetWMNormalHints(dpy, window, &hints, &longjunk))
62 if (!(hints.flags & PResizeInc))
64 if (hints.width_inc == 0 || hints.height_inc == 0)
66 if (!(hints.flags & (PBaseSize|PMinSize)))
68 if (hints.flags & PBaseSize)
70 win_attributes.width -= hints.base_width;
71 win_attributes.height -= hints.base_height;
74 win_attributes.width -= hints.min_width;
75 win_attributes.height -= hints.min_height;
77 *p_width = win_attributes.width / hints.width_inc;
78 *p_height = win_attributes.height / hints.height_inc;