nanogui: GR_EVENT_SCREENSAVER never emitted


Previous by date: 5 May 2001 02:12:28 -0000 Re: Gpm problems, Scott A McConnell
Next by date: 5 May 2001 02:12:28 -0000 Re: GR_EVENT_SCREENSAVER never emitted, Alex Holden
Previous in thread:
Next in thread: 5 May 2001 02:12:28 -0000 Re: GR_EVENT_SCREENSAVER never emitted, Alex Holden

Subject: GR_EVENT_SCREENSAVER never emitted
From: "hongouyang" ####@####.####
Date: 5 May 2001 02:12:28 -0000
Message-Id: <002101c0d508$b68380a0$557e9684@sttri.com>

Hello. I met a problem when using GR_EVENT_SCREENSAVER.
I modified the src/demos/nxkbd/nxkbd.c file as such:
line 299: GrSetScreenSaver(5*1000);     /*added by me, 5 seconds*/
line 301: GrSelectEvents(w, GR_EVENT_MASK_CLOSE_REQ |
                                         GR_EVENT_MASK_EXPOSURE   |
                                         GR_EVENT_MASK_SCREENSAVER |
                                         GR_EVENT_MASK_BUTTON_DOWN);    /*modified to add screensaver event*/
line 340: case GR_EVENT_TYPE_SCREENSAVER:        /*added by me in the for(;;) */
                    printf("Screensaver event got\n");             
                   break;
Having done this, I expected to print a information after 5 seconds when I do not hit the keyboard or move the mouse. But this does not happen.
I have test it both on my PC and on the Assabat board and both failed. I want to know if I have not used the screensaver event properly or there are some settings I have not set. 
Thanks in advance.

Previous by date: 5 May 2001 02:12:28 -0000 Re: Gpm problems, Scott A McConnell
Next by date: 5 May 2001 02:12:28 -0000 Re: GR_EVENT_SCREENSAVER never emitted, Alex Holden
Previous in thread:
Next in thread: 5 May 2001 02:12:28 -0000 Re: GR_EVENT_SCREENSAVER never emitted, Alex Holden


Powered by ezmlm-browse 0.20.