have core ask windowport if suspend is ok

PORTS: Please make sure I've done the right thing for/to your code.
This patch adds a new winproc that lets the window port approve or cancel
the suspend request - this should take care of the Mac Qt lockup issue.
In addition, Unix suspend is restricted to accounts that can use the shell
if SYSCF is defined.
This commit is contained in:
keni
2010-01-15 17:51:28 +00:00
parent 655adf8535
commit f6e40b8bf8
15 changed files with 54 additions and 6 deletions

View File

@@ -488,6 +488,9 @@ suspend_nhwindows(str)
-- Prepare the window to be suspended.
resume_nhwindows()
-- Restore the windows after being suspended.
can_suspend() -- Tell the core if the window system will allow the game
to be suspended now. If unconditionally yes or no, use
genl_can_suspend_yes() or genl_can_suspend_no().
start_screen() -- Only used on Unix tty ports, but must be declared for
completeness. Sets up the tty to work in full-screen