Permalink
Browse files

xterm extended fix

  • Loading branch information...
1 parent 926bbcc commit bb369334722b23120bf0b0e91e6a6c69e0884474 @niieani niieani committed with keithw Sep 9, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/terminal/terminaldisplay.cc
@@ -298,10 +298,10 @@ std::string Display::new_frame( bool initialized, const Framebuffer &last, const
frame.append( f.ds.xterm_mouse ? "\033[?1002h" : "\033[?1002l" );
}
- /* has xterm mouse mode changed (SET_ANY_EVENT_MOUSE)? */
+ /* has xterm mouse mode changed? */
if ( (!initialized)
|| (f.ds.xterm_extended_mouse != frame.last_frame.ds.xterm_extended_mouse) ) {
- frame.append( f.ds.xterm_extended_mouse ? "\033[?1006h" : "\033[?1006l" );
+ frame.append( f.ds.xterm_extended_mouse ? "\033[?1006h\033[?1002h" : "\033[?1006l\033[?1002l" );
}
return frame.str;

0 comments on commit bb36933

Please sign in to comment.