]> git.eshelyaron.com Git - emacs.git/commitdiff
(XTread_socket): Don't beep on keyboard input even if no frame is
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Mon, 18 Apr 2005 07:44:54 +0000 (07:44 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Mon, 18 Apr 2005 07:44:54 +0000 (07:44 +0000)
visible.

src/macterm.c

index fb1e6c14abc1c69f671097a09c9241f5db89e2ba..dcbc7b0dbd86a3bc96f432f6f7a6c4420be2014e 100644 (file)
@@ -8590,13 +8590,15 @@ XTread_socket (sd, expected, hold_quit)
                struct frame *f = mac_focus_frame (dpyinfo);
                WindowPtr window_ptr;
 
-               if (!f)
+#if 0
+               if (dpyinfo->x_focus_frame == NULL)
                  {
                    /* Beep if wheel move occurs when all the frames
                       are invisible.  */
                    SysBeep(1);
                    break;
                  }
+#endif
 
                GetEventParameter(eventRef, kEventParamMouseWheelDelta,
                                  typeSInt32, NULL, sizeof (SInt32),
@@ -9011,6 +9013,7 @@ XTread_socket (sd, expected, hold_quit)
                break;
 #endif
 
+#if 0
            if (dpyinfo->x_focus_frame == NULL)
              {
                /* Beep if keyboard input occurs when all the frames
@@ -9018,6 +9021,7 @@ XTread_socket (sd, expected, hold_quit)
                SysBeep (1);
                break;
              }
+#endif
 
            {
              static SInt16 last_key_script = -1;