--- rxvt-unicode/src/command.C 2004/01/29 23:26:01 1.31 +++ rxvt-unicode/src/command.C 2004/01/30 18:12:17 1.33 @@ -1,7 +1,7 @@ /*--------------------------------*-C-*---------------------------------* * File: command.c *----------------------------------------------------------------------* - * $Id: command.C,v 1.31 2004/01/29 23:26:01 pcg Exp $ + * $Id: command.C,v 1.33 2004/01/30 18:12:17 pcg Exp $ * * All portions of code are copyright by their respective author/s. * Copyright (c) 1992 John Bovey, University of Kent at Canterbury @@ -1476,8 +1476,8 @@ R->selection_extend ((ev->xbutton.x), (ev->xbutton.y), (ev->xbutton.state & Button3Mask) ? 2 : 0); #ifdef SELECTION_SCROLLING - if (ev->xbutton.yTermWin.int_bwidth || - Pixel2Row(ev->xbutton.y)>(R->TermWin.nrow-1)) { + if (ev->xbutton.y < R->TermWin.int_bwidth + || Pixel2Row(ev->xbutton.y) > (R->TermWin.nrow-1)) { int dist; R->pending_scroll_selection=1; @@ -3087,6 +3087,7 @@ { 1010, PrivMode_TtyOutputInh }, { 1011, PrivMode_Keypress }, { 1047, PrivMode_Screen }, + { 1049, PrivMode_Screen }, /* xterm extension, not fully implemented */ }; if (nargs == 0) @@ -3203,6 +3204,7 @@ R->Options &= ~Opt_scrollTtyKeypress; break; case 1047: /* secondary screen w/ clearing */ + case 1049: /* better secondary screen w/ clearing, but not fully implemented */ if (R->current_screen != PRIMARY) R->scr_erase_screen (2); rxvt_scr_change_screen(aR_ state);