From 2f29e60d2a4f641f4d274829e54e491a251c9ef2 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Mon, 18 Apr 2005 07:44:54 +0000 Subject: [PATCH] (XTread_socket): Don't beep on keyboard input even if no frame is visible. --- src/macterm.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 2.39.2