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: Steven Tamm
Subject: [Emacs-diffs] Changes to emacs/src/macterm.c
Date: Sun, 10 Oct 2004 13:09:11 -0400

Index: emacs/src/macterm.c
diff -c emacs/src/macterm.c:1.79 emacs/src/macterm.c:1.80
*** emacs/src/macterm.c:1.79    Thu Oct  7 21:59:39 2004
--- emacs/src/macterm.c Sun Oct 10 16:56:20 2004
***************
*** 5317,5323 ****
       struct frame *f;
  {
    if (f->async_visible)
!     SelectWindow (FRAME_MAC_WINDOW (f));
  }
  
  /* Lower frame F.  */
--- 5317,5327 ----
       struct frame *f;
  {
    if (f->async_visible)
!     {
!       BLOCK_INPUT;
!       SelectWindow (FRAME_MAC_WINDOW (f));
!       UNBLOCK_INPUT;
!     }
  }
  
  /* Lower frame F.  */
***************
*** 5326,5332 ****
       struct frame *f;
  {
    if (f->async_visible)
!     SendBehind (FRAME_MAC_WINDOW (f), nil);
  }
  
  static void
--- 5330,5340 ----
       struct frame *f;
  {
    if (f->async_visible)
!     {
!       BLOCK_INPUT;
!       SendBehind (FRAME_MAC_WINDOW (f), nil);
!       UNBLOCK_INPUT;
!     }
  }
  
  static void
***************
*** 8757,8762 ****
--- 8765,8771 ----
  
    mwp = fp->output_data.mac;
  
+   BLOCK_INPUT;
    if (making_terminal_window)
      {
        if (!(mwp->mWP = GetNewCWindow (TERM_WINDOW_RESOURCE, NULL,
***************
*** 8784,8792 ****
      /* so that update events can find this mac_output struct */
    mwp->mFP = fp;  /* point back to emacs frame */
  
-   SetPortWindowPort (mwp->mWP);
- 
    SizeWindow (mwp->mWP, FRAME_PIXEL_WIDTH (fp), FRAME_PIXEL_HEIGHT (fp), 
false);
  }
  
  
--- 8793,8800 ----
      /* so that update events can find this mac_output struct */
    mwp->mFP = fp;  /* point back to emacs frame */
  
    SizeWindow (mwp->mWP, FRAME_PIXEL_WIDTH (fp), FRAME_PIXEL_HEIGHT (fp), 
false);
+   UNBLOCK_INPUT;
  }
  
  
***************
*** 9209,9214 ****
--- 9217,9223 ----
    signal (SIGPIPE, x_connection_signal);
  #endif
  
+   BLOCK_INPUT;
    mac_initialize_display_info ();
  
  #if TARGET_API_MAC_CARBON
***************
*** 9227,9232 ****
--- 9236,9242 ----
    if (!inhibit_window_system)
      MakeMeTheFrontProcess ();
  #endif
+   UNBLOCK_INPUT;
  }
  
  




reply via email to

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