Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!rochester!pt.cs.cmu.edu!henry!hairston From: hairston@henry.ece.cmu.edu (David Hairston) Newsgroups: comp.sys.mac.programmer Subject: Re: More screen saver woes.... Message-ID: Date: 26 Jan 91 18:27:08 GMT References: <91025.211426CXT105@psuvm.psu.edu> Organization: Gaia II Lines: 22 In-reply-to: CXT105@psuvm.psu.edu's message of 26 Jan 91 02:14:25 GMT [CXT105@psuvm.psu.edu (Christopher Tate) writes:] [] Things are progressing fairly well in my screen-saver project: I install [] a jGNEFilter routine that checks for events and mouse movement, and blanks [] the screen by opening my own GrafPort on top of it if the machine is idle [] for more than a certain amount of time. [] [] Unfortunately, I don't know how to keep other applications from writing [] into the screen while it's blanked. A couple of ideas have occurred to me: the window manager (when used properly) prevents overlapped windows from writing to the front window. i think the trick here is to open a window that covers the GrayRgn rectangle, include the menu bar region into that windows visRgn and clipRgn and not worry about hidden windows. when your window is on top you can draw what you want. when you're done, closing your window will prompt the window manager to update the visRgn's of the previously hidden windows. Tom Dowdy's Darkside of the Mac (comp.binaries.mac) is freeware and extensible and includes example code as well ... -dave- hairston@henry.ece.cmu.edu