mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-23 08:20:41 -08:00
* configure.ac (HAVE_XKB): Define if Xkb is present.
* src/xterm.c: Include X11/XKBlib.h (XTring_bell): Use XkbBell if HAVE_XKB. Fixes: debbugs:14041
This commit is contained in:
parent
553fabe73a
commit
a4cedbf774
3 changed files with 13 additions and 0 deletions
|
|
@ -130,6 +130,10 @@ extern void _XEditResCheckMessages (Widget, XtPointer, XEvent *, Boolean *);
|
|||
|
||||
#include "bitmaps/gray.xbm"
|
||||
|
||||
#ifdef HAVE_XKB
|
||||
#include <X11/XKBlib.h>
|
||||
#endif
|
||||
|
||||
/* Default to using XIM if available. */
|
||||
#ifdef USE_XIM
|
||||
int use_xim = 1;
|
||||
|
|
@ -3218,7 +3222,11 @@ XTring_bell (struct frame *f)
|
|||
else
|
||||
{
|
||||
block_input ();
|
||||
#ifdef HAVE_XKB
|
||||
XkbBell (FRAME_X_DISPLAY (f), None, 0, None);
|
||||
#else
|
||||
XBell (FRAME_X_DISPLAY (f), 0);
|
||||
#endif
|
||||
XFlush (FRAME_X_DISPLAY (f));
|
||||
unblock_input ();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue