aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xterm.h')
-rw-r--r--src/xterm.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/xterm.h b/src/xterm.h
index 76cba8a2517..4e38ac18e3d 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -21,8 +21,13 @@ Boston, MA 02111-1307, USA. */
21 21
22#include <X11/Xlib.h> 22#include <X11/Xlib.h>
23#include <X11/cursorfont.h> 23#include <X11/cursorfont.h>
24
25/* Include Xutil.h after keysym.h to work around a bug that prevents
26 correct recognition of AltGr key in some X versions. */
27
24#include <X11/keysym.h> 28#include <X11/keysym.h>
25#include <X11/Xutil.h> 29#include <X11/Xutil.h>
30
26#include <X11/Xatom.h> 31#include <X11/Xatom.h>
27#include <X11/Xresource.h> 32#include <X11/Xresource.h>
28 33
@@ -45,7 +50,9 @@ typedef Widget xt_or_gtk_widget;
45typedef GtkWidget *xt_or_gtk_widget; 50typedef GtkWidget *xt_or_gtk_widget;
46#define XtParent(x) (gtk_widget_get_parent (x)) 51#define XtParent(x) (gtk_widget_get_parent (x))
47#undef XSync 52#undef XSync
48#define XSync(d, b) gdk_window_process_all_updates () 53#define XSync(d, b) do { gdk_window_process_all_updates (); \
54 XSync (d, b); } while (0)
55
49 56
50#endif /* USE_GTK */ 57#endif /* USE_GTK */
51 58
@@ -596,6 +603,7 @@ struct x_output
596 XIC xic; 603 XIC xic;
597 XIMStyle xic_style; 604 XIMStyle xic_style;
598 XFontSet xic_xfs; 605 XFontSet xic_xfs;
606 char *xic_base_fontname;
599#endif 607#endif
600 608
601 /* Relief GCs, colors etc. */ 609 /* Relief GCs, colors etc. */
@@ -730,6 +738,7 @@ enum
730#define FRAME_X_XIM_STYLES(f) (FRAME_X_DISPLAY_INFO (f)->xim_styles) 738#define FRAME_X_XIM_STYLES(f) (FRAME_X_DISPLAY_INFO (f)->xim_styles)
731#define FRAME_XIC_STYLE(f) ((f)->output_data.x->xic_style) 739#define FRAME_XIC_STYLE(f) ((f)->output_data.x->xic_style)
732#define FRAME_XIC_FONTSET(f) ((f)->output_data.x->xic_xfs) 740#define FRAME_XIC_FONTSET(f) ((f)->output_data.x->xic_xfs)
741#define FRAME_XIC_BASE_FONTNAME(f) ((f)->output_data.x->xic_base_fontname)
733 742
734/* Value is the smallest width of any character in any font on frame F. */ 743/* Value is the smallest width of any character in any font on frame F. */
735 744
@@ -1039,6 +1048,7 @@ extern void x_set_menu_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object))
1039extern unsigned char * x_encode_text P_ ((Lisp_Object, Lisp_Object, int, 1048extern unsigned char * x_encode_text P_ ((Lisp_Object, Lisp_Object, int,
1040 int *, int *)); 1049 int *, int *));
1041extern void x_implicitly_set_name P_ ((struct frame *, Lisp_Object, Lisp_Object)); 1050extern void x_implicitly_set_name P_ ((struct frame *, Lisp_Object, Lisp_Object));
1051extern void xic_free_xfontset P_ ((struct frame *));
1042extern void create_frame_xic P_ ((struct frame *)); 1052extern void create_frame_xic P_ ((struct frame *));
1043extern void destroy_frame_xic P_ ((struct frame *)); 1053extern void destroy_frame_xic P_ ((struct frame *));
1044extern void xic_set_preeditarea P_ ((struct window *, int, int)); 1054extern void xic_set_preeditarea P_ ((struct window *, int, int));