Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!infonode!ingr!b11!dwig From: dwig@b11.ingr.com (David Wiggins) Newsgroups: comp.windows.x Subject: Re: save_under quiz for xperts! Message-ID: <1991May22.132822.20756@b11.ingr.com> Date: 22 May 91 13:28:22 GMT References: <9105172046.AA01600@cas.org> <9105201954.AA14669@alex.lcs.mit.edu> Organization: Intergraph Corp. Huntsville, AL Lines: 30 gildea@expo.lcs.mit.EDU (Stephen Gildea) writes: > If you have save_under specified for a popup window and the > contents of the window under the popup changes, what is the > correct behavior for a server when the popup is unmapped? > A) Restore the contents of the window under the popup, thus losing the > changes made while the window was obscured? > B) Recognize the contents were changed and send an expose event to the > window. >Remember, if it truly supports save unders, the server should not be >sending expose events. Thus neither A nor B is a proper solution. The Protocol says: If save-under is True, the server is advised that when this window is mapped, saving the contents of windows it obscures would be beneficial. I read this to mean that setting save-under was just a hint that the server could ignore at any time. With this interpretation, B does not violate the protocol, and is thus a proper solution. > < Stephen > MIT X Consortium David P. Wiggins Intergraph