nanogui: GR_EVENT_SCREENSAVER never emitted
Subject:
Re: GR_EVENT_SCREENSAVER never emitted
From:
"hongouyang" ####@####.####
Date:
6 May 2001 01:53:22 -0000
Message-Id: <001901c0d5cf$46043000$557e9684@sttri.com>
> > GrSelectEvents(GR_ROOT_WINDOW_ID, GR_EVENT_MASK_SCREENSAVER);
>
> You're doing this within the server? Don't do that, because the server
> can't catch events (and the event delivery code will probably break when
> it tries to deliver the event to a non existant client). Just do the
> GrSetScreenSaverTimeout() to activate the screensaver, then call your code
> from the GsActivateScreenSaver() and GsResetScreenSaver() calls. They will
> still execute even though no clients have selected to receive the
> screensaver event.
Yes, what you have said is right. Thanks.