Cosmetic: clarify that term->xterm_mouse is not boolean, etc.
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sat, 20 Dec 2008 18:52:09 +0000 (18:52 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sat, 20 Dec 2008 18:52:09 +0000 (18:52 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@8374 cda61777-01e9-0310-a592-d414129be87e

terminal.c
terminal.h

index 3a2ab62..ef40de2 100644 (file)
@@ -1223,7 +1223,7 @@ static void power_on(Terminal *term, int clear)
     term->erase_char = term->basic_erase_char;
     term->alt_which = 0;
     term_print_finish(term);
-    term->xterm_mouse = FALSE;
+    term->xterm_mouse = 0;
     set_raw_mouse_mode(term->frontend, FALSE);
     {
        int i;
@@ -2385,11 +2385,11 @@ static void toggle_mode(Terminal *term, int mode, int query, int state)
            swap_screen(term, term->cfg.no_alt_screen ? 0 : state, FALSE, FALSE);
            term->disptop = 0;
            break;
-         case 1000:                   /* xterm mouse 1 */
+         case 1000:                   /* xterm mouse 1 (normal) */
            term->xterm_mouse = state ? 1 : 0;
            set_raw_mouse_mode(term->frontend, state);
            break;
-         case 1002:                   /* xterm mouse 2 */
+         case 1002:                   /* xterm mouse 2 (inc. button drags) */
            term->xterm_mouse = state ? 2 : 0;
            set_raw_mouse_mode(term->frontend, state);
            break;
index 4288d61..aef47a5 100644 (file)
@@ -151,7 +151,7 @@ struct terminal_tag {
     int seen_disp_event;
     int big_cursor;
 
-    int xterm_mouse;                  /* send mouse messages to app */
+    int xterm_mouse;                  /* send mouse messages to host */
     int mouse_is_down;                /* used while tracking mouse buttons */
 
     int cset_attr[2];