[comp.windows.x] sizehints question

jwz@lucid.com (Jamie Zawinski) (05/01/91)

I have an application which contains a menubar frame and a text frame.
I set the width_inc and height_inc slots of the XSizeHints on the parent
window to the font-size of the text frame.  But the problem with this
is, when I resize the window, and the window manager tells me that it's
80x24 characters, it's referring to the top-level window.  So the text
frame (the interesting part) is really 80x21 or so (lose lose!)

Is there any way to tell the window manager that there is a chunk of
real estate that shouldn't be considered when making this computation,
like a "size-offset" or something?

	-- Jamie

jordan@tcs.COM (Jordan Hayes) (05/02/91)

Look at base_width and base_height in that structure.

/jordan