aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2005-04-18 07:44:54 +0000
committerYAMAMOTO Mitsuharu2005-04-18 07:44:54 +0000
commit2f29e60d2a4f641f4d274829e54e491a251c9ef2 (patch)
tree937ea2f9e84f83ec0aba5639a5489deaac96cb2d /src
parent8b8f03c80cf2ad0a17952bfcc82839601cd624f8 (diff)
downloademacs-2f29e60d2a4f641f4d274829e54e491a251c9ef2.tar.gz
emacs-2f29e60d2a4f641f4d274829e54e491a251c9ef2.zip
(XTread_socket): Don't beep on keyboard input even if no frame is
visible.
Diffstat (limited to 'src')
-rw-r--r--src/macterm.c6
1 files changed, 5 insertions, 1 deletions
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)
8590 struct frame *f = mac_focus_frame (dpyinfo); 8590 struct frame *f = mac_focus_frame (dpyinfo);
8591 WindowPtr window_ptr; 8591 WindowPtr window_ptr;
8592 8592
8593 if (!f) 8593#if 0
8594 if (dpyinfo->x_focus_frame == NULL)
8594 { 8595 {
8595 /* Beep if wheel move occurs when all the frames 8596 /* Beep if wheel move occurs when all the frames
8596 are invisible. */ 8597 are invisible. */
8597 SysBeep(1); 8598 SysBeep(1);
8598 break; 8599 break;
8599 } 8600 }
8601#endif
8600 8602
8601 GetEventParameter(eventRef, kEventParamMouseWheelDelta, 8603 GetEventParameter(eventRef, kEventParamMouseWheelDelta,
8602 typeSInt32, NULL, sizeof (SInt32), 8604 typeSInt32, NULL, sizeof (SInt32),
@@ -9011,6 +9013,7 @@ XTread_socket (sd, expected, hold_quit)
9011 break; 9013 break;
9012#endif 9014#endif
9013 9015
9016#if 0
9014 if (dpyinfo->x_focus_frame == NULL) 9017 if (dpyinfo->x_focus_frame == NULL)
9015 { 9018 {
9016 /* Beep if keyboard input occurs when all the frames 9019 /* Beep if keyboard input occurs when all the frames
@@ -9018,6 +9021,7 @@ XTread_socket (sd, expected, hold_quit)
9018 SysBeep (1); 9021 SysBeep (1);
9019 break; 9022 break;
9020 } 9023 }
9024#endif
9021 9025
9022 { 9026 {
9023 static SInt16 last_key_script = -1; 9027 static SInt16 last_key_script = -1;