Path: utzoo!attcan!uunet!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!keith From: keith@EXPO.LCS.MIT.EDU (Keith Packard) Newsgroups: comp.windows.x Subject: Re: Resize and expose event in Xt Message-ID: <9010131657.AA00990@xenon.lcs.mit.edu> Date: 13 Oct 90 16:57:54 GMT References: <9010130358.AA11381@Larry.McRCIM.McGill.EDU> Sender: root@athena.mit.edu (Wizard A. Root) Organization: The Internet Lines: 12 > Not necessarily; if a window is shrunk you will not necessarily get an > Expose. After all, no part of the window is visible that wasn't > visible before. By looking at the CreateWindow request, you'll notice that the default bit-gravity for a window is Forget. Unless the application specifically sets it to something else, everytime the window is resized, it will get exposure events, even if the window has backing-store (see the ConfigureWindow request). A better to track resize would obviously be to select for StructureNotify and pay attention to ConfigureNotify events.