comparison src/xterm.c @ 13507:9a9f459075af

(HACK_EDITRES): Define here as in xfns.c. (XTread_socket): Test HACK_EDITRES.
author Richard M. Stallman <rms@gnu.org>
date Sat, 11 Nov 1995 07:13:06 +0000
parents 941c37982f37
children 21b6b8f50143
comparison
equal deleted inserted replaced
13506:6360f5543071 13507:9a9f459075af
83 #include "keyboard.h" 83 #include "keyboard.h"
84 #include "intervals.h" 84 #include "intervals.h"
85 85
86 #ifdef USE_X_TOOLKIT 86 #ifdef USE_X_TOOLKIT
87 extern void free_frame_menubar (); 87 extern void free_frame_menubar ();
88 extern FRAME_PTR x_menubar_window_to_frame ();
89 #if (XtSpecificationRelease >= 5) && !defined(NO_EDITRES)
90 #define HACK_EDITRES
88 extern void _XEditResCheckMessages (); 91 extern void _XEditResCheckMessages ();
89 extern FRAME_PTR x_menubar_window_to_frame (); 92 #endif /* not NO_EDITRES */
90 #endif /* USE_X_TOOLKIT */ 93 #endif /* USE_X_TOOLKIT */
91 94
92 #ifndef USE_X_TOOLKIT 95 #ifndef USE_X_TOOLKIT
93 #define x_any_window_to_frame x_window_to_frame 96 #define x_any_window_to_frame x_window_to_frame
94 #define x_top_window_to_frame x_window_to_frame 97 #define x_top_window_to_frame x_window_to_frame
3418 { 3421 {
3419 f->output_data.x->left_pos = new_x; 3422 f->output_data.x->left_pos = new_x;
3420 f->output_data.x->top_pos = new_y; 3423 f->output_data.x->top_pos = new_y;
3421 } 3424 }
3422 } 3425 }
3423 #if defined (USE_X_TOOLKIT) && defined (HAVE_X11R5) 3426 #ifdef HACK_EDITRES
3424 else if (event.xclient.message_type 3427 else if (event.xclient.message_type
3425 == dpyinfo->Xatom_editres) 3428 == dpyinfo->Xatom_editres)
3426 { 3429 {
3427 struct frame *f 3430 struct frame *f
3428 = x_any_window_to_frame (dpyinfo, event.xclient.window); 3431 = x_any_window_to_frame (dpyinfo, event.xclient.window);
3429 _XEditResCheckMessages (f->output_data.x->widget, NULL, 3432 _XEditResCheckMessages (f->output_data.x->widget, NULL,
3430 &event, NULL); 3433 &event, NULL);
3431 } 3434 }
3432 #endif /* USE_X_TOOLKIT and HAVE_X11R5 */ 3435 #endif /* HACK_EDITRES */
3433 } 3436 }
3434 break; 3437 break;
3435 3438
3436 case SelectionNotify: 3439 case SelectionNotify:
3437 #ifdef USE_X_TOOLKIT 3440 #ifdef USE_X_TOOLKIT