From: root Date: Sun, 22 Jan 2006 17:10:01 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=91ef42b56e028175051995c300424ecf15b78c44;p=dana%2Furxvt.git *** empty log message *** --- diff --git a/Changes b/Changes index 4ae54cda..5481bbf6 100644 --- 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 diff --git a/config.h.in b/config.h.in index 21fa9e27..4925b545 100644 --- a/config.h.in +++ b/config.h.in @@ -81,9 +81,6 @@ /* Define to 1 if you have the 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 @@ -371,7 +368,7 @@ /* 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 */ diff --git a/configure b/configure index 9473936a..294292ed 100755 --- 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 +#include +#include +#include + +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`" diff --git a/src/rxvt.h b/src/rxvt.h index 4be268a0..798ccaff 100644 --- a/src/rxvt.h +++ b/src/rxvt.h @@ -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;