emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/macterm.c


From: Andrew Choi
Subject: [Emacs-diffs] Changes to emacs/src/macterm.c
Date: Sat, 10 Aug 2002 20:26:24 -0400

Index: emacs/src/macterm.c
diff -c emacs/src/macterm.c:1.14 emacs/src/macterm.c:1.15
*** emacs/src/macterm.c:1.14    Sun Aug  4 15:29:06 2002
--- emacs/src/macterm.c Sat Aug 10 20:26:24 2002
***************
*** 366,371 ****
--- 366,372 ----
  
  extern Lisp_Object x_icon_type P_ ((struct frame *));
  
+ extern int inhibit_window_system;
  
  #if __MRC__
  QDGlobals qd;  /* QuickDraw global information structure.  */
***************
*** 13405,13410 ****
--- 13406,13423 ----
    return dpyinfo;
  }
  
+ #ifdef MAC_OSX
+ void MakeMeTheFrontProcess ()
+ {
+   ProcessSerialNumber psn;
+   OSErr err;
+   
+   err = GetCurrentProcess (&psn);
+   if (err == noErr)
+     (void) SetFrontProcess (&psn);
+ }
+ #endif /* MAC_OSX */
+ 
  /* Set up use of X before we make the first connection.  */
  
  static struct redisplay_interface x_redisplay_interface =
***************
*** 13514,13519 ****
--- 13527,13535 ----
  #endif
  
    DisableMenuCommand (NULL, kHICommandQuit);
+ 
+   if (!inhibit_window_system)
+     MakeMeTheFrontProcess ();
  #endif
  }
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]