366 |
|
|
367 |
extern Lisp_Object x_icon_type P_ ((struct frame *)); |
extern Lisp_Object x_icon_type P_ ((struct frame *)); |
368 |
|
|
369 |
|
extern int inhibit_window_system; |
370 |
|
|
371 |
#if __MRC__ |
#if __MRC__ |
372 |
QDGlobals qd; /* QuickDraw global information structure. */ |
QDGlobals qd; /* QuickDraw global information structure. */ |
13406 |
return dpyinfo; |
return dpyinfo; |
13407 |
} |
} |
13408 |
|
|
13409 |
|
#ifdef MAC_OSX |
13410 |
|
void MakeMeTheFrontProcess () |
13411 |
|
{ |
13412 |
|
ProcessSerialNumber psn; |
13413 |
|
OSErr err; |
13414 |
|
|
13415 |
|
err = GetCurrentProcess (&psn); |
13416 |
|
if (err == noErr) |
13417 |
|
(void) SetFrontProcess (&psn); |
13418 |
|
} |
13419 |
|
#endif /* MAC_OSX */ |
13420 |
|
|
13421 |
/* Set up use of X before we make the first connection. */ |
/* Set up use of X before we make the first connection. */ |
13422 |
|
|
13423 |
static struct redisplay_interface x_redisplay_interface = |
static struct redisplay_interface x_redisplay_interface = |
13527 |
#endif |
#endif |
13528 |
|
|
13529 |
DisableMenuCommand (NULL, kHICommandQuit); |
DisableMenuCommand (NULL, kHICommandQuit); |
13530 |
|
|
13531 |
|
if (!inhibit_window_system) |
13532 |
|
MakeMeTheFrontProcess (); |
13533 |
#endif |
#endif |
13534 |
} |
} |
13535 |
|
|