*** empty log message ***
authorroot <root>
Sun, 22 Jan 2006 17:10:01 +0000 (17:10 +0000)
committerroot <root>
Sun, 22 Jan 2006 17:10:01 +0000 (17:10 +0000)
Changes
config.h.in
configure
src/rxvt.h

diff --git a/Changes b/Changes
index 4ae54cda5b608edfec5ad980feddb4bbcbedd0ed..5481bbf678d6847c58ea325253a7ac9093da4afb 100644 (file)
--- a/Changes
+++ b/Changes
@@ -12,6 +12,7 @@ TODO: rxvt -name urxvt-girly /// leave pixel droppings
 TODO: distributed clipboard example
 TODO: http://www.issociate.de/board/post/274416/HOWTO:_Mouse_editing_with_readline_in_xterm.html
 TODO: http://groups.google.com/group/comp.unix.shell/msg/e538d04a118174d3
+WISH: anyevent mouse notification / manage MotionMask better.
 WISH: OnTheSpot editing, or maybe switch to miiiiiiif. or maybe use perl and an overlay...
 WISH: just for fun, do shade and tint with XRender.
 DUMB: support tex fonts
index 21fa9e2771bf22d6a470bacd849bbd05c523966b..4925b545eba05c0263bcac266b02dd20cdd46ed0 100644 (file)
@@ -81,9 +81,6 @@
 /* Define to 1 if you have the <memory.h> header file. */
 #undef HAVE_MEMORY_H
 
-/* Define to 1 if you have the `nanosleep' function. */
-#undef HAVE_NANOSLEEP
-
 /* Define if nl_langinfo(CODESET) works */
 #undef HAVE_NL_LANGINFO
 
 /* Define location of ttys/ttytab */
 #undef TTYTAB_FILENAME
 
-/* Define to change gid of ttys to group tty */
+/* "" */
 #undef TTY_GID_SUPPORT
 
 /* Define if you want to represent unicode characters outside plane 0 */
index 9473936ad6eb42ef3e8d13ae9f8233731b03e9c9..294292ed40fac567cba49ecd56096c96feea6f8d 100755 (executable)
--- a/configure
+++ b/configure
@@ -885,7 +885,6 @@ Optional Features:
   --enable-perl           enable embedded perl interpreter
   --enable-plain-scroll   enable plain style scrollbar
   --enable-xim            XIM (X Input Method) protocol support
-  --enable-ttygid         enable tty setting to group named "tty"
   --disable-backspace-key disable handling of the backspace key
   --disable-delete-key    disable handling of the delete key
   --disable-resources     disable all resource checking
@@ -4337,18 +4336,6 @@ if test "${enable_xim+set}" = set; then
   fi
 fi;
 
-# Check whether --enable-ttygid or --disable-ttygid was given.
-if test "${enable_ttygid+set}" = set; then
-  enableval="$enable_ttygid"
-  if test x$enableval = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define TTY_GID_SUPPORT 1
-_ACEOF
-
-  fi
-fi;
-
 # Check whether --enable-backspace-key or --disable-backspace-key was given.
 if test "${enable_backspace_key+set}" = set; then
   enableval="$enable_backspace_key"
@@ -10073,7 +10060,6 @@ _ACEOF
 
 
 
-
 for ac_func in \
        unsetenv \
        setutent \
@@ -10081,7 +10067,6 @@ for ac_func in \
        setresuid \
        setreuid \
        on_exit \
-       nanosleep \
 
 do
 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
@@ -12721,6 +12706,76 @@ done
 fi
 
 
+
+echo "$as_me:$LINENO: checking for tty group" >&5
+echo $ECHO_N "checking for tty group... $ECHO_C" >&6
+if test "${tty_group+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test "$cross_compiling" = yes; then
+  tty_group=no
+else
+  cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+#include <grp.h>
+
+main()
+{
+  struct stat st;
+  struct group *gr;
+  char *tty;
+  gr = getgrnam("tty");
+  tty = ttyname(0);
+  if (gr != 0
+      && tty != 0
+      && (stat(tty, &st)) == 0
+      && st.st_gid == gr->gr_gid)
+    return 0;
+  else
+    return 1;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+  { (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
+  tty_group=yes
+else
+  echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+tty_group=no
+fi
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+fi
+echo "$as_me:$LINENO: result: $tty_group" >&5
+echo "${ECHO_T}$tty_group" >&6
+if test x$tty_group = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define TTY_GID_SUPPORT 1
+_ACEOF
+
+fi
+
 if test x$support_xft = xyes; then
   # Extract the first word of "pkg-config", so it can be a program name with args.
 set dummy pkg-config; ac_word=$2
@@ -12762,7 +12817,11 @@ else
 echo "${ECHO_T}no" >&6
 fi
 
-  # Extract the first word of "xft-config", so it can be a program name with args.
+  if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
+    LIBS="$LIBS `$PKG_CONFIG xft --libs`"
+    CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
+  else
+    # Extract the first word of "xft-config", so it can be a program name with args.
 set dummy xft-config; ac_word=$2
 echo "$as_me:$LINENO: checking for $ac_word" >&5
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
@@ -12802,10 +12861,6 @@ else
 echo "${ECHO_T}no" >&6
 fi
 
-  if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
-    LIBS="$LIBS `$PKG_CONFIG xft --libs`"
-    CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
-  else
     if test $XFT_CONFIG != no; then
       LIBS="$LIBS `$XFT_CONFIG --libs`"
       CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
index 4be268a001d1114ac874d3840860a18db69ea432..798ccafff89d564d8dd8f0ebfac4de8c0b4b7ee0 100644 (file)
@@ -1259,10 +1259,10 @@ struct rxvt_term : zero_initialized, rxvt_vars {
   void window_calc (unsigned int newwidth, unsigned int newheight);
 
 #if USE_XIM
-  rxvt_xim       *input_method;
-  XIC             Input_Context;
-  XIMStyle        input_style;
-  XPoint          spot; // most recently sent spot position
+  rxvt_xim *input_method;
+  XIC      Input_Context;
+  XIMStyle input_style;
+  XPoint   spot; // most recently sent spot position
 
   void im_destroy ();
   void im_cb (); im_watcher im_ev;