From: YAMAMOTO Mitsuharu Date: Mon, 18 Apr 2005 07:44:54 +0000 (+0000) Subject: (XTread_socket): Don't beep on keyboard input even if no frame is X-Git-Tag: ttn-vms-21-2-B4~935 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2f29e60d2a4f641f4d274829e54e491a251c9ef2;p=emacs.git (XTread_socket): Don't beep on keyboard input even if no frame is visible. --- diff --git a/src/macterm.c b/src/macterm.c index fb1e6c14abc..dcbc7b0dbd8 100644 --- a/src/macterm.c +++ b/src/macterm.c @@ -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;