[haiku-development] Re: Disable screensaver?

  • From: "François Revol" <revol@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 03 Nov 2008 21:14:12 +0100 CET

> > (some ported apps have issues on that though, like vlc and firefox
> > which always stop the shutdown process).
> Is that maybe because the registrar just sends B_QUIT_REQUESTED with
> an added _shutdown boolean parameter? The "dumber" non-native apps
> don't check for that parameter and so invoke their usual
> QuitRequested
> functionality, which probably requires user interaction.

That's because they return false from QuitRequested() because they must
let the main thread close the window from within...
It should actually detach the message and forward it to later reply to
it with a true...

> With the power management system we could define new messages and
> just
> ignore them by default in BApplication, as described above. The
> "canceling" of the screensaver or whatever would require an active
> response.



Other related posts: