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:
@@ -88,6 +88,16 @@ struct win_choices {
|
||||
{ 0, 0 } /* must be last */
|
||||
};
|
||||
|
||||
boolean
|
||||
genl_can_suspend_no(){
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
boolean
|
||||
genl_can_suspend_yes(){
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
STATIC_OVL
|
||||
void
|
||||
def_raw_print(s)
|
||||
@@ -316,6 +326,7 @@ static struct window_procs hup_procs = {
|
||||
genl_status_threshold,
|
||||
# endif
|
||||
# endif /* STATUS_VIA_WINDOWPORT */
|
||||
genl_can_suspend_no,
|
||||
};
|
||||
|
||||
static void FDECL((*previnterface_exit_nhwindows), (const char *)) = 0;
|
||||
|
||||
Reference in New Issue
Block a user