aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-12-31 19:10:03 +0000
committerRichard M. Stallman1995-12-31 19:10:03 +0000
commit717ca13092235ee0b9a5df7cc960530576f14420 (patch)
tree37b0089faabcd0267fc0cdbc46dc369262f54127 /src
parent0e4889b213ba0d0c46ce338a1ba92a5e1826a04b (diff)
downloademacs-717ca13092235ee0b9a5df7cc960530576f14420.tar.gz
emacs-717ca13092235ee0b9a5df7cc960530576f14420.zip
(XTread_socket): Pass KeyPress events to the toolkit.
Make the OTHER label exist unconditionally, and make the gotos unconditional when that is convenient.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c33
1 files changed, 2 insertions, 31 deletions
diff --git a/src/xterm.c b/src/xterm.c
index eade5d759de..89376585b32 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -3591,10 +3591,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
3591 count++; 3591 count++;
3592 numchars--; 3592 numchars--;
3593 } 3593 }
3594#ifdef USE_X_TOOLKIT
3595 goto OTHER; 3594 goto OTHER;
3596#endif /* USE_X_TOOLKIT */
3597 break;
3598 3595
3599 case MapNotify: 3596 case MapNotify:
3600 /* We use x_top_window_to_frame because map events can come 3597 /* We use x_top_window_to_frame because map events can come
@@ -3623,10 +3620,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
3623 in case this is the second frame. */ 3620 in case this is the second frame. */
3624 record_asynch_buffer_change (); 3621 record_asynch_buffer_change ();
3625 } 3622 }
3626#ifdef USE_X_TOOLKIT
3627 goto OTHER; 3623 goto OTHER;
3628#endif /* USE_X_TOOLKIT */
3629 break;
3630 3624
3631 /* Turn off processing if we become fully obscured. */ 3625 /* Turn off processing if we become fully obscured. */
3632 case VisibilityNotify: 3626 case VisibilityNotify:
@@ -3790,7 +3784,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
3790 else 3784 else
3791 abort (); 3785 abort ();
3792 } 3786 }
3793 break; 3787 goto OTHER;
3794 3788
3795 /* Here's a possible interpretation of the whole 3789 /* Here's a possible interpretation of the whole
3796 FocusIn-EnterNotify FocusOut-LeaveNotify mess. If you get a 3790 FocusIn-EnterNotify FocusOut-LeaveNotify mess. If you get a
@@ -3818,10 +3812,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
3818 so update things that depend on mouse position. */ 3812 so update things that depend on mouse position. */
3819 if (f) 3813 if (f)
3820 note_mouse_movement (f, &event.xmotion); 3814 note_mouse_movement (f, &event.xmotion);
3821#ifdef USE_X_TOOLKIT
3822 goto OTHER; 3815 goto OTHER;
3823#endif /* USE_X_TOOLKIT */
3824 break;
3825 3816
3826 case FocusIn: 3817 case FocusIn:
3827 f = x_any_window_to_frame (dpyinfo, event.xfocus.window); 3818 f = x_any_window_to_frame (dpyinfo, event.xfocus.window);
@@ -3835,11 +3826,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
3835 XSetICFocus (FRAME_XIC (f)); 3826 XSetICFocus (FRAME_XIC (f));
3836#endif 3827#endif
3837 3828
3838#ifdef USE_X_TOOLKIT
3839 goto OTHER; 3829 goto OTHER;
3840#endif /* USE_X_TOOLKIT */
3841 break;
3842
3843 3830
3844 case LeaveNotify: 3831 case LeaveNotify:
3845 f = x_top_window_to_frame (dpyinfo, event.xcrossing.window); 3832 f = x_top_window_to_frame (dpyinfo, event.xcrossing.window);
@@ -3860,10 +3847,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
3860 x_new_focus_frame (dpyinfo, 0); 3847 x_new_focus_frame (dpyinfo, 0);
3861 } 3848 }
3862 } 3849 }
3863#ifdef USE_X_TOOLKIT
3864 goto OTHER; 3850 goto OTHER;
3865#endif /* USE_X_TOOLKIT */
3866 break;
3867 3851
3868 case FocusOut: 3852 case FocusOut:
3869 f = x_any_window_to_frame (dpyinfo, event.xfocus.window); 3853 f = x_any_window_to_frame (dpyinfo, event.xfocus.window);
@@ -3878,10 +3862,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
3878 XUnsetICFocus (FRAME_XIC (f)); 3862 XUnsetICFocus (FRAME_XIC (f));
3879#endif 3863#endif
3880 3864
3881#ifdef USE_X_TOOLKIT
3882 goto OTHER; 3865 goto OTHER;
3883#endif /* USE_X_TOOLKIT */
3884 break;
3885 3866
3886 case MotionNotify: 3867 case MotionNotify:
3887 { 3868 {
@@ -3905,10 +3886,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
3905 clear_mouse_face (dpyinfo); 3886 clear_mouse_face (dpyinfo);
3906 } 3887 }
3907 } 3888 }
3908#ifdef USE_X_TOOLKIT
3909 goto OTHER; 3889 goto OTHER;
3910#endif /* USE_X_TOOLKIT */
3911 break;
3912 3890
3913 case ConfigureNotify: 3891 case ConfigureNotify:
3914 f = x_any_window_to_frame (dpyinfo, event.xconfigure.window); 3892 f = x_any_window_to_frame (dpyinfo, event.xconfigure.window);
@@ -3997,11 +3975,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
3997/* #endif */ 3975/* #endif */
3998 } 3976 }
3999 } 3977 }
4000#ifdef USE_X_TOOLKIT
4001 goto OTHER; 3978 goto OTHER;
4002#else
4003 break;
4004#endif
4005 3979
4006 case ButtonPress: 3980 case ButtonPress:
4007 case ButtonRelease: 3981 case ButtonRelease:
@@ -4103,14 +4077,11 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
4103 case MappingKeyboard: 4077 case MappingKeyboard:
4104 XRefreshKeyboardMapping (&event.xmapping); 4078 XRefreshKeyboardMapping (&event.xmapping);
4105 } 4079 }
4106#ifdef USE_X_TOOLKIT
4107 goto OTHER; 4080 goto OTHER;
4108#endif /* USE_X_TOOLKIT */
4109 break;
4110 4081
4111 default: 4082 default:
4112#ifdef USE_X_TOOLKIT
4113 OTHER: 4083 OTHER:
4084#ifdef USE_X_TOOLKIT
4114 BLOCK_INPUT; 4085 BLOCK_INPUT;
4115 XtDispatchEvent (&event); 4086 XtDispatchEvent (&event);
4116 UNBLOCK_INPUT; 4087 UNBLOCK_INPUT;