[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: low-level system events
- To: slh@digitool.com (Steve Hain), abegel@media.mit.edu
- Subject: Re: low-level system events
- From: jwbaxter@olympus.net (John W. Baxter)
- Date: Wed, 15 Feb 1995 11:22:14 -0800
- Cc: info-mcl@digitool.com
- Sender: owner-info-mcl@digitool.com
At 17:09 2/14/95, Steve Hain wrote:
>>I'm doing some low-level assebly drawing stuff that I want to
>>disable if my application is not in the foreground. Right now, I do it
>>when the window that I'm drawing in gets deactivated, but if I have
>>a screen saver, the window isn't deactivated and will keep drawing
>>over the screen saver!
>
>As far as I know, screen savers don't "come to the foreground" like
>applications, and therefore do not deativate windows. I believe they
>just take over the WIndow Manager's grafport, and invalidate the entire
>screen when they are deactivated. I don't know how you could check for
>a screen saver running from MCL; perhaps someone else has a suggestion.
The major screensaver players (including Berkeley, with After Dark) have
defined a collection of Gestalt selectors related to screen savers. [I
currently use the monitor's off switch as a screen saver, so I can't get
"live" info for you.] A check with Berkeley Software Systems should
produce a document...it might also be in a suitable part of the info-mac
archives.
In addition to one which indicates which screensaver is in use, some of
them provide another which is the address of a function you can call to
obtain and set various status information.
That won't help you with the latest my-first-ever-Mac-code screensaver.
--JOhn
--
What's this funny white stuff tossed carelessly on the ground?
jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA