Re: [maemo-developers] How to determine if the screen has turned off?

2006-12-14 Thread Tapani Pälli
ext Frantisek Dufka wrote: > Eero Tamminen wrote: >> I think the app loses focus when the screen is blanked. >> So, the SDL app could catch screen focus events and do >> some additional checks when that happens. > > Good idea, thanks. > >> >> Or SDL app could always pause when it loses focus... >>

Re: [maemo-developers] How to determine if the screen has turned off?

2006-12-14 Thread Frantisek Dufka
Eero Tamminen wrote: I think the app loses focus when the screen is blanked. So, the SDL app could catch screen focus events and do some additional checks when that happens. Good idea, thanks. Or SDL app could always pause when it loses focus... This is good for video updates but sometime

Re: [maemo-developers] How to determine if the screen has turned off?

2006-12-14 Thread David Weinehall
On tor, 2006-12-14 at 11:01 +0200, ext Kimmo Hämäläinen wrote: > On Wed, 2006-12-13 at 15:22 -0800, ext Aaron Levinson wrote: > > On Wed, 13 Dec 2006, Johan Bilien wrote: > > > > > On Wed, Dec 13, 2006, Aaron Levinson wrote: > > > > In the Maemo coding style and programming guidelines document on

Re: [maemo-developers] How to determine if the screen has turned off?

2006-12-14 Thread Kimmo Hämäläinen
On Thu, 2006-12-14 at 11:16 +0200, ext Eero Tamminen wrote: > Hi, > > >> http://maemo.org/platform/docs/api/libosso/html/index.html > >> > >> You can register a callback with osso_hw_set_event_cb, set the > >> system_inactivity_ind flag in the osso_hw_state_t argument. > > > > Will this callback b

Re: [maemo-developers] How to determine if the screen has turned off?

2006-12-14 Thread Daniel Stone
On Thu, Dec 14, 2006 at 11:16:02AM +0200, ext Eero Tamminen wrote: > I think the app loses focus when the screen is blanked. > So, the SDL app could catch screen focus events and do > some additional checks when that happens. Right: as far as I can tell, a big black window covers the entire screen

Re: [maemo-developers] How to determine if the screen has turned off?

2006-12-14 Thread Eero Tamminen
Hi, >> http://maemo.org/platform/docs/api/libosso/html/index.html >> >> You can register a callback with osso_hw_set_event_cb, set the >> system_inactivity_ind flag in the osso_hw_state_t argument. > > Will this callback be called even without processing gtk/glib loop? > If not is there other way

Re: [maemo-developers] How to determine if the screen has turned off?

2006-12-14 Thread Tapani Pälli
ext Frantisek Dufka wrote: > Johan Bilien wrote: >> >> http://maemo.org/platform/docs/api/libosso/html/index.html >> >> You can register a callback with osso_hw_set_event_cb, set the >> system_inactivity_ind flag in the osso_hw_state_t argument. >> > > Will this callback be called even without proc

Re: [maemo-developers] How to determine if the screen has turned off?

2006-12-14 Thread Kimmo Hämäläinen
On Wed, 2006-12-13 at 15:22 -0800, ext Aaron Levinson wrote: > On Wed, 13 Dec 2006, Johan Bilien wrote: > > > On Wed, Dec 13, 2006, Aaron Levinson wrote: > > > In the Maemo coding style and programming guidelines document on > > > maemo.org, it states the following: "Avoid updating the GUI when t

RE: [maemo-developers] How to determine if the screen has turned off?

2006-12-14 Thread Jakub.Pavelek
>> http://maemo.org/platform/docs/api/libosso/html/index.html >> >> You can register a callback with osso_hw_set_event_cb, set the >> system_inactivity_ind flag in the osso_hw_state_t argument. >> > >Will this callback be called even without processing gtk/glib loop? >If not is there other way ho

Re: [maemo-developers] How to determine if the screen has turned off?

2006-12-14 Thread Frantisek Dufka
Johan Bilien wrote: http://maemo.org/platform/docs/api/libosso/html/index.html You can register a callback with osso_hw_set_event_cb, set the system_inactivity_ind flag in the osso_hw_state_t argument. Will this callback be called even without processing gtk/glib loop? If not is there other

Re: [maemo-developers] How to determine if the screen has turned off?

2006-12-13 Thread Johan Bilien
Aaron Levinson wrote: Well, I had already examining the libosso APIs before sending the e-mail, and I did notice the system_inactivity_ind flag in the osso_hw_state_t struct. However, according to the libosso documentation, if the callback is called for system inactivity, this means that "the

Re: [maemo-developers] How to determine if the screen has turned off?

2006-12-13 Thread Aaron Levinson
On Wed, 13 Dec 2006, Johan Bilien wrote: > On Wed, Dec 13, 2006, Aaron Levinson wrote: > > In the Maemo coding style and programming guidelines document on > > maemo.org, it states the following: "Avoid updating the GUI when the > > application running on the background and when the screen has be

Re: [maemo-developers] How to determine if the screen has turned off?

2006-12-13 Thread Johan Bilien
On Wed, Dec 13, 2006, Aaron Levinson wrote: > In the Maemo coding style and programming guidelines document on > maemo.org, it states the following: "Avoid updating the GUI when the > application running on the background and when the screen has been turned > off. Remove unnecessary graphical elem

[maemo-developers] How to determine if the screen has turned off?

2006-12-13 Thread Aaron Levinson
In the Maemo coding style and programming guidelines document on maemo.org, it states the following: "Avoid updating the GUI when the application running on the background and when the screen has been turned off. Remove unnecessary graphical elements or constantly updated screen components." Now,