Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!decwrl!chico.pa.dec.com!klee From: klee@chico.pa.dec.com (Ken Lee) Newsgroups: comp.windows.x Subject: Re: How to track window size changes (X11R3 *without* the Toolkit) Keywords: size changes Message-ID: <1452@bacchus.dec.com> Date: 26 May 89 20:22:35 GMT References: <1228@irisa.UUCP> Sender: news@decwrl.dec.com Lines: 12 > When a user changes the size of the window with his favorite Window Manager, > I want to adjust the size of the graphics to the new size of the window. > XSelectInput(dpy, win, ExposureMask | ResizeRedirectMask) To get ConfigureNotify events (including resize), use the StructureNotifyMask. The ResizeRedirectMask is for window managers that want to redirect resize requests. After you receive the event, a XGetWindowAttributes or XGetGeometry request should give you the correct window size. Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. klee@decwrl.dec.com