*** empty log message ***
authorroot <root>
Tue, 10 Aug 2004 20:39:19 +0000 (20:39 +0000)
committerroot <root>
Tue, 10 Aug 2004 20:39:19 +0000 (20:39 +0000)
src/command.h
src/feature.h
src/init.C
src/iom.C
src/main.C

index 337b12157049f61a112fef716300ade33eb8bd77..d693e5f312559b31379f7c5c985a6eed5a922ca1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: command.h,v 1.10 2004-07-26 18:01:19 root Exp $
+ * $Id: command.h,v 1.13 2004-08-10 20:39:19 root Exp $
  */
 
 #ifndef COMMAND_H_
 
 #ifdef SCROLL_ON_SHIFT
 # define SCROLL_SHIFTKEY (shft)
+# define NOSCROLL_SHIFTKEY 0
 #else
 # define SCROLL_SHIFTKEY 0
+# define NOSCROLL_SHIFTKEY (shft)
 #endif
 #ifdef SCROLL_ON_CTRL
 # define SCROLL_CTRLKEY  (ctrl)
+# define NOSCROLL_CTRLKEY 0
 #else
 # define SCROLL_CTRLKEY 0
+# define NOSCROLL_CTRLKEY (ctrl)
 #endif
 #ifdef SCROLL_ON_META
 # define SCROLL_METAKEY  (meta)
+# define NOSCROLL_METAKEY 0
 #else
 # define SCROLL_METAKEY 0
+# define NOSCROLL_METAKEY (meta)
 #endif
-#define IS_SCROLL_MOD  (SCROLL_SHIFTKEY || SCROLL_CTRLKEY || SCROLL_METAKEY)
+#define IS_SCROLL_MOD  ((SCROLL_SHIFTKEY || SCROLL_CTRLKEY || SCROLL_METAKEY) \
+              && (!NOSCROLL_SHIFTKEY && !NOSCROLL_CTRLKEY && !NOSCROLL_METAKEY))
+
 
 /*
  * ESC-Z processing:
index 1e55b28f147c308fa13618d106237e5fde5e1b52..d802a1856ea38a4ea6e2c1cc4c0d393d116d570c 100644 (file)
 #endif
 
 /*
- * Modifier/s to use to allow up/down arrows and Priot/Next keys
+ * Modifier/s to use to allow up/down arrows and Prior/Next keys
  * to scroll single or page-fulls
  */
 #define SCROLL_ON_SHIFT
  * Default separating chars for multiple-click selection
  * Space and tab are separate separating characters and are not settable
  */
-#define CUTCHARS       "\"&'()*,;<=>?@[\\]^`{|}~"
+#define CUTCHARS       "\"&'()*,;<=>?@[\\]^`{|}"
 
 /*
  * Add run-time support for changing the cutchars for double click selection
index f60ad4f51e41eea3048af0455172aacc922b0c73..0606a74734cd22fc56bfae4b8f04e1f4b4c9a64b 100644 (file)
@@ -1352,6 +1352,7 @@ rxvt_term::run_command (const char *const *argv)
           rxvt_fatal ("can't open slave tty %s", ttydev);
         }
     }
+
 #ifndef NO_BACKSPACE_KEY
   if (key_backspace[0] && !key_backspace[1])
     er = key_backspace[0];
@@ -1359,10 +1360,9 @@ rxvt_term::run_command (const char *const *argv)
     er = '\177';            /* the initial state anyway */
   else
 #endif
-
     er = -1;
 
-  rxvt_get_ttymode (& (tio), er);
+  rxvt_get_ttymode (&tio, er);
 
 #ifndef __QNX__
   /* spin off the command interpreter */
@@ -1453,10 +1453,8 @@ rxvt_term::run_child (const char *const *argv)
 
       fd = open (CONSOLE, O_WRONLY, 0);
       if (fd >= 0)
-        {
-          if (ioctl (fd, SRIOCSREDIR, NULL) < 0)
-            close (fd);
-        }
+        if (ioctl (fd, SRIOCSREDIR, NULL) < 0)
+          close (fd);
 #endif                          /* SRIOCSREDIR */
 
     }
index 77c64f89df499025f61710578988e6e72896d0a6..1b7313d33c7298c51f1ace7064c0b148cc311b5d 100644 (file)
--- a/src/iom.C
+++ b/src/iom.C
@@ -52,7 +52,7 @@ static struct tw0 : time_watcher
     {
       // should never get called
       // reached end-of-time, or tstamp has a bogus definition,
-      // or compiler initilization order broken, or somethine else :)
+      // or compiler initialisation order broken, or something else :)
       abort ();
     }
 
index 4d5991f56f89b976364221bd4bc187d79b4ebc37..4777b6926f789490e7a5de1400b4e28225813f0e 100644 (file)
@@ -203,6 +203,9 @@ rxvt_term::~rxvt_term ()
     {
       selection_clear ();
 
+#ifdef USE_XIM
+      im_destroy ();
+#endif
 #ifdef MENUBAR
       if (menubarGC) XFreeGC (display->display, menubarGC);
 #endif
@@ -276,13 +279,12 @@ rxvt_term::~rxvt_term ()
 void
 rxvt_term::destroy ()
 {
+  if (destroy_ev.active)
+    return;
+
   if (display)
     {
-      rootwin_ev.stop (display);
-      termwin_ev.stop (display);
-      vt_ev.stop (display);
 #ifdef USE_XIM
-      im_destroy ();
       im_ev.stop (display);
 #endif
 #ifdef HAVE_SCROLLBARS
@@ -291,6 +293,9 @@ rxvt_term::destroy ()
 #ifdef MENUBAR
       menubar_ev.stop (display);
 #endif
+      rootwin_ev.stop (display);
+      termwin_ev.stop (display);
+      vt_ev.stop (display);
     }
 
   check_ev.stop ();