extern public static void XSetWMNormalHints (IntPtr display, XWindow w, ref XSizeHints hints);
// Construct the XSizeHints structure for this window. private XSizeHints BuildSizeHints(int x, int y, int width, int height) { XSizeHints hints = new XSizeHints(); if(x != 0 || y != 0) { hints.flags = SizeHintsMask.USPosition | SizeHintsMask.USSize; hints.x = x; hints.y = y; } else { hints.flags = SizeHintsMask.USSize; } hints.width = width; hints.height = height; if(minWidth != 0 || minHeight != 0) { hints.flags |= SizeHintsMask.PMinSize; hints.min_width = minWidth; hints.min_height = minHeight; } if(maxWidth != 0 || maxWidth != 0) { hints.flags |= SizeHintsMask.PMaxSize; hints.max_width = maxWidth; hints.max_height = maxHeight; } return hints; }