diff options
author | Po Lu <luangruo@yahoo.com> | 2022-03-19 09:11:09 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-03-19 09:29:08 +0800 |
commit | 1467b04f5cf586c0f44b7df00591986fa8d40c66 (patch) | |
tree | ec88708c7d6413162416fbc0941e9f09f75fe380 /configure.ac | |
parent | ae9a0b78080d8c448e3949b257c55c5288d05529 (diff) | |
download | emacs-1467b04f5cf586c0f44b7df00591986fa8d40c66.tar.gz emacs-1467b04f5cf586c0f44b7df00591986fa8d40c66.tar.bz2 emacs-1467b04f5cf586c0f44b7df00591986fa8d40c66.zip |
Handle composite overlay window during drag and drop sessions
* configure.ac: Test for the composite extension and use it if
available.
* msdos/sed1v2.inp: Update.
* src/Makefile.in (XCOMPOSITE_LIBS, XCOMPOSITE_CFLAGS): New
variables.
(EMACS_CFLAGS, LIBES): Add new libs and cflags.
* src/xterm.c (x_dnd_get_target_window): Look for proxy on
composite overlay window if mapped.
(x_term_init): Test if the composite extension is available.
* src/xterm.h (struct x_display_info): New fields for composite
extension presence.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index bc17935eb13..6e637477334 100644 --- a/configure.ac +++ b/configure.ac @@ -4538,6 +4538,24 @@ fi AC_SUBST(XDBE_CFLAGS) AC_SUBST(XDBE_LIBS) +### Use Xcomposite (-lXcomposite) if available +HAVE_XCOMPOSITE=no +if test "${HAVE_X11}" = "yes"; then + AC_CHECK_HEADER(X11/extensions/Xcomposite.h, + [AC_CHECK_LIB(Xcomposite, XCompositeRedirectWindow, HAVE_XCOMPOSITE=yes)], + [], + [#include <X11/extensions/Xcomposite.h> + ]) + if test $HAVE_XCOMPOSITE = yes; then + XCOMPOSITE_LIBS=-lXcomposite + fi + if test $HAVE_XCOMPOSITE = yes; then + AC_DEFINE(HAVE_XCOMPOSITE, 1, [Define to 1 if you have the XCOMPOSITE extension.]) + fi +fi +AC_SUBST(XCOMPOSITE_CFLAGS) +AC_SUBST(XCOMPOSITE_LIBS) + ### Use libxml (-lxml2) if available ### mingw32 doesn't use -lxml2, since it loads the library dynamically. HAVE_LIBXML2=no |