*** empty log message ***
authorroot <root>
Fri, 30 Jul 2004 16:04:05 +0000 (16:04 +0000)
committerroot <root>
Fri, 30 Jul 2004 16:04:05 +0000 (16:04 +0000)
autoconf/config.h.in
autoconf/configure.in
configure
src/rxvtcolor.C

index 51321ce..ffe57fa 100644 (file)
 /* Define if nl_langinfo(CODESET) works */
 #undef HAVE_NL_LANGINFO
 
+/* Define if your XIMCallback specifies XIC as first type. */
+#undef XIMCB_PROTO_BROKEN
+
 /* Define if you have _GNU_SOURCE getpt()  */
 #undef HAVE_GETPT
 
index 9208687..14e6ae0 100644 (file)
@@ -1092,6 +1092,22 @@ if test x$rxvt_cv_func_nl_langinfo = xyes; then
   AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works)
 fi
 
+AC_CACHE_CHECK(for broken XIM callback, rxvt_broken_ximcb,
+[AC_COMPILE_IFELSE([
+#include <X11/Xlib.h>
+
+void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
+
+void f() {
+  XIMCallback cb;
+  cb.callback = im_destroy_cb;
+}
+],rxvt_broken_ximcb=yes,rxvt_broken_ximcb=no)])
+
+if test x$rxvt_broken_ximcb = xyes; then
+   AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.)
+fi
+
 AC_CACHE_CHECK(for getpt, rxvt_cv_func_getpt,
 [AC_TRY_LINK([#define _GNU_SOURCE
 #ifdef HAVE_STDLIB_H
index 1c68a78..e40101e 100755 (executable)
--- a/configure
+++ b/configure
@@ -1039,6 +1039,7 @@ Optional Features:
   --enable-xpm-background enable XPM background pixmaps
   --enable-transparency   enable transparent backgrounds
   --enable-tinting        enable tinting of transparent bg
+  --enable-fading         enable colors fading when off focus
   --enable-menubar        enable menubar
   --enable-rxvt-scroll    enable rxvt style scrollbar
   --enable-next-scroll    enable NeXT style scrollbar
@@ -5237,7 +5238,7 @@ test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 case "$host" in
 *-*-irix6*)
   # Find out which ABI we are using.
-  echo '#line 5240 "configure"' > conftest.$ac_ext
+  echo '#line 5241 "configure"' > conftest.$ac_ext
   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   (eval $ac_compile) 2>&5
   ac_status=$?
@@ -5788,7 +5789,7 @@ chmod -w .
 save_CFLAGS="$CFLAGS"
 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
 compiler_c_o=no
-if { (eval echo configure:5791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
+if { (eval echo configure:5792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
   # The compiler can only warn and ignore the option if not recognized
   # So say no if there are warnings
   if test -s out/conftest.err; then
@@ -7404,7 +7405,7 @@ else
     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 7407 "configure"
+#line 7408 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -7502,7 +7503,7 @@ else
     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 7505 "configure"
+#line 7506 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -8236,6 +8237,7 @@ support_frills=no
 support_linespace=no
 support_inheritpixmap=no
 support_tinting=no
+support_fading=no
 support_keepscrolling=no
 support_selectionscrolling=no
 support_menubar=no
@@ -8279,6 +8281,7 @@ if test "${enable_everything+set}" = set; then
     support_linespace=yes
     support_inheritpixmap=yes
     support_tinting=yes
+    support_fading=yes
     support_keepscrolling=yes
     support_selectionscrolling=yes
     support_lastlog=yes
@@ -8376,6 +8379,14 @@ if test "${enable_tinting+set}" = set; then
   fi
 fi;
 
+# Check whether --enable-fading or --disable-fading was given.
+if test "${enable_fading+set}" = set; then
+  enableval="$enable_fading"
+  if test x$enableval = xyes -o x$enableval = xno; then
+    support_fading=$enableval
+  fi
+fi;
+
 # Check whether --enable-menubar or --disable-menubar was given.
 if test "${enable_menubar+set}" = set; then
   enableval="$enable_menubar"
@@ -16189,6 +16200,64 @@ _ACEOF
 
 fi
 
+echo "$as_me:$LINENO: checking for broken XIM callback" >&5
+echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
+if test "${rxvt_broken_ximcb+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+
+#include <X11/Xlib.h>
+
+void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
+
+void f() {
+  XIMCallback cb;
+  cb.callback = im_destroy_cb;
+}
+
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+        { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; } &&
+        { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  rxvt_broken_ximcb=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+rxvt_broken_ximcb=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
+echo "${ECHO_T}$rxvt_broken_ximcb" >&6
+
+if test x$rxvt_broken_ximcb = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define XIMCB_PROTO_BROKEN 1
+_ACEOF
+
+fi
+
 echo "$as_me:$LINENO: checking for getpt" >&5
 echo $ECHO_N "checking for getpt... $ECHO_C" >&6
 if test "${rxvt_cv_func_getpt+set}" = set; then
@@ -16384,6 +16453,13 @@ cat >>confdefs.h <<\_ACEOF
 _ACEOF
 
 fi
+if test x$support_fading = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define OFF_FOCUS_FADING 1
+_ACEOF
+
+fi
 if test x$support_tinting = xyes; then
 
 cat >>confdefs.h <<\_ACEOF
index 8400571..ae2b394 100644 (file)
@@ -106,7 +106,11 @@ refcache<T>::~refcache ()
 
 #ifdef USE_XIM
 static void
+#if XIMCB_PROTO_BROKEN
+im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3)
+#else
 im_destroy_cb (XIM unused1, XPointer client_data, XPointer unused3)
+#endif
 {
   rxvt_xim *xim = (rxvt_xim *)client_data;
   rxvt_display *display = xim->display;