meyer@uoregon.UUCP (David M. Meyer) (03/04/88)
Greetings,
My question regards processing the ResizeRequest event in
X11 (release 1). I observed the following behavior:
Suppose my client process (call it foo) creates a window
(via XCreateSimpleWindow). And suppose I fire up uwm, so
that when I run foo, uwm asks me to size the window (no
Hints set). Now, when I size the window, foo receives a
ResizeRequest. Suppose attributes is a XWindowAttributes
structure, and event is a XEvent structure. Then when foo
receives the ResizeRequest, it has the following
(partial) state:
attributes.x -> new (correct) value
attributes.y -> new (correct) value
attributes.height -> unchanged from XCreateSimpleWindow
attributes.width -> unchanged from XCreateSimpleWindow
event.xresizerequest.height -> new (correct) value
event.xresizerequest.width -> new (correct) value
Now, my question is: How do I actually get the window
sized (i.e., attributes.height = event.xresizerequest.height,
etc)? [I find it odd that the x and y coordinates of the
window get set up but not the size.]
Am I missing somthing here? Or, is this just an artifact
of the patch level we are at?
Thanks,
Dave
-------------------------------------------------
David Meyer
Department of Computer Science
University of Oregon
Eugene, OR 97403-1202
internet: meyer@cs.uoregon.edu
usenet: {decvax, allegra}!tektronix!uoregon!meyer
csnet: meyer@uoregon.csnet