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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user