Mercurial > emacs
comparison src/macterm.c @ 46856:eba75fedd593
2002-08-10 Andrew Choi <akochoi@shaw.ca>
* mac.c (sys_select) [MAC_OSX]: New function.
* macterm.c (MakeMeTheFrontProcess): New function.
(mac_initialize): Call MakeMeTheFrontProcess.
* s/darwin.h: Define select to sys_select.
author | Andrew Choi <akochoi@shaw.ca> |
---|---|
date | Sun, 11 Aug 2002 00:26:24 +0000 |
parents | 0139d2dce230 |
children | 8b7ade57211d |
comparison
equal
deleted
inserted
replaced
46855:f3a9fdb839d2 | 46856:eba75fedd593 |
---|---|
364 extern XrmDatabase x_load_resources P_ ((Display *, char *, char *, char *)); | 364 extern XrmDatabase x_load_resources P_ ((Display *, char *, char *, char *)); |
365 #endif | 365 #endif |
366 | 366 |
367 extern Lisp_Object x_icon_type P_ ((struct frame *)); | 367 extern Lisp_Object x_icon_type P_ ((struct frame *)); |
368 | 368 |
369 extern int inhibit_window_system; | |
369 | 370 |
370 #if __MRC__ | 371 #if __MRC__ |
371 QDGlobals qd; /* QuickDraw global information structure. */ | 372 QDGlobals qd; /* QuickDraw global information structure. */ |
372 #endif | 373 #endif |
373 | 374 |
13403 dpyinfo->width = (**main_device_handle).gdRect.right; | 13404 dpyinfo->width = (**main_device_handle).gdRect.right; |
13404 | 13405 |
13405 return dpyinfo; | 13406 return dpyinfo; |
13406 } | 13407 } |
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 | |
13408 /* Set up use of X before we make the first connection. */ | 13421 /* Set up use of X before we make the first connection. */ |
13409 | 13422 |
13410 static struct redisplay_interface x_redisplay_interface = | 13423 static struct redisplay_interface x_redisplay_interface = |
13411 { | 13424 { |
13412 x_produce_glyphs, | 13425 x_produce_glyphs, |
13512 #if USE_CARBON_EVENTS | 13525 #if USE_CARBON_EVENTS |
13513 init_service_handler (); | 13526 init_service_handler (); |
13514 #endif | 13527 #endif |
13515 | 13528 |
13516 DisableMenuCommand (NULL, kHICommandQuit); | 13529 DisableMenuCommand (NULL, kHICommandQuit); |
13530 | |
13531 if (!inhibit_window_system) | |
13532 MakeMeTheFrontProcess (); | |
13517 #endif | 13533 #endif |
13518 } | 13534 } |
13519 | 13535 |
13520 | 13536 |
13521 void | 13537 void |