aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--configure.ac1
-rw-r--r--src/xterm.c8
3 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d6626d4df10..3d01040ca96 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
12013-03-25 Jan Djärv <jan.h.d@swipnet.se>
2
3 * configure.ac (HAVE_XKB): Define if Xkb is present.
4
12013-03-24 Paul Eggert <eggert@cs.ucla.edu> 52013-03-24 Paul Eggert <eggert@cs.ucla.edu>
2 6
3 Merge from gnulib, incorporating: 7 Merge from gnulib, incorporating:
diff --git a/configure.ac b/configure.ac
index d6c730c5033..1c5c1725dab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1822,6 +1822,7 @@ if test "${HAVE_X11}" = "yes"; then
1822 AC_MSG_RESULT($emacs_xkb) 1822 AC_MSG_RESULT($emacs_xkb)
1823 if test $emacs_xkb = yes; then 1823 if test $emacs_xkb = yes; then
1824 AC_DEFINE(HAVE_XKBGETKEYBOARD, 1, [Define to 1 if you have the XkbGetKeyboard function.]) 1824 AC_DEFINE(HAVE_XKBGETKEYBOARD, 1, [Define to 1 if you have the XkbGetKeyboard function.])
1825 AC_DEFINE(HAVE_XKB, 1, [Define to 1 if you have the Xkb extension.])
1825 fi 1826 fi
1826 1827
1827 AC_CHECK_FUNCS(XrmSetDatabase XScreenResourceString \ 1828 AC_CHECK_FUNCS(XrmSetDatabase XScreenResourceString \
diff --git a/src/xterm.c b/src/xterm.c
index d8c2dfdda82..e4a681031ef 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -130,6 +130,10 @@ extern void _XEditResCheckMessages (Widget, XtPointer, XEvent *, Boolean *);
130 130
131#include "bitmaps/gray.xbm" 131#include "bitmaps/gray.xbm"
132 132
133#ifdef HAVE_XKB
134#include <X11/XKBlib.h>
135#endif
136
133/* Default to using XIM if available. */ 137/* Default to using XIM if available. */
134#ifdef USE_XIM 138#ifdef USE_XIM
135int use_xim = 1; 139int use_xim = 1;
@@ -3218,7 +3222,11 @@ XTring_bell (struct frame *f)
3218 else 3222 else
3219 { 3223 {
3220 block_input (); 3224 block_input ();
3225#ifdef HAVE_XKB
3226 XkbBell (FRAME_X_DISPLAY (f), None, 0, None);
3227#else
3221 XBell (FRAME_X_DISPLAY (f), 0); 3228 XBell (FRAME_X_DISPLAY (f), 0);
3229#endif
3222 XFlush (FRAME_X_DISPLAY (f)); 3230 XFlush (FRAME_X_DISPLAY (f));
3223 unblock_input (); 3231 unblock_input ();
3224 } 3232 }