Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!leah!rpi!rpi.edu!hiebeler From: hiebeler@turing.cs.rpi.edu (Dave Hiebeler) Newsgroups: comp.windows.x Subject: Re: fix2 patch to window.c destroys backing_store Message-ID: Date: 14 Apr 89 01:23:28 GMT References: <8904132030.AA00612@EXPIRE.LCS.MIT.EDU> Sender: usenet@rpi.edu Organization: RPI CS Dept Lines: 28 In-reply-to: rws@EXPO.LCS.MIT.EDU's message of 13 Apr 89 20:30:31 GMT In article <8904132030.AA00612@EXPIRE.LCS.MIT.EDU> rws@EXPO.LCS.MIT.EDU (Bob Scheifler) writes: > >> those 2 lines seem >> to say "if you're not the first child, don't do anything", > > No, they say "if the window doesn't have any children, don't do anything". > >> This seems to be hitting that return. > > Have you actually witnessed this with a debugger? I haven't witnessed this with a debugger, but I think my test was fairly conclusive: I compiled the same exact source code, both with and without those 2 lines. When the 2 lines are there, backing_store does not work (in my particular case). When the lines are not there, backing_store works fine. No other changes were made between compiles. I am enabling backing_store on the window of a box widget with no children, so it would seem logical that this return is getting executed. -- Dave Hiebeler Internet: hiebeler@cs.rpi.edu (preferred address) Computer Science Dept. hiebeler@itsgw.rpi.edu Amos Eaton Bldg. Bitnet: userfrzk@rpitsmts.bitnet Rensselaer Polytechnic Institute / Troy, NY 12180-3590