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

@@ -2574,6 +2574,8 @@ E boolean FDECL(mwelded, (struct obj *));
/* ### windows.c ### */
E void FDECL(choose_windows, (const char *));
E boolean NDECL(genl_can_suspend_no);
E boolean NDECL(genl_can_suspend_yes);
E char FDECL(genl_message_menu, (CHAR_P,int,const char *));
E void FDECL(genl_preference_update, (const char *));
E char *FDECL(genl_getmsghistory, (BOOLEAN_P));

View File

@@ -80,6 +80,7 @@ struct window_procs {
void FDECL((*win_status_threshold), (int,int,anything,int,int,int));
# endif
#endif
boolean NDECL((*win_can_suspend));
};
extern