=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/window-copy.c,v retrieving revision 1.28 retrieving revision 1.29 diff -c -r1.28 -r1.29 *** src/usr.bin/tmux/window-copy.c 2009/10/06 07:09:00 1.28 --- src/usr.bin/tmux/window-copy.c 2009/10/11 07:01:10 1.29 *************** *** 1,4 **** ! /* $OpenBSD: window-copy.c,v 1.28 2009/10/06 07:09:00 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: window-copy.c,v 1.29 2009/10/11 07:01:10 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 29,35 **** void window_copy_key(struct window_pane *, struct client *, int); int window_copy_key_input(struct window_pane *, int); void window_copy_mouse( ! struct window_pane *, struct client *, u_char, u_char, u_char); void window_copy_redraw_lines(struct window_pane *, u_int, u_int); void window_copy_redraw_screen(struct window_pane *); --- 29,35 ---- void window_copy_key(struct window_pane *, struct client *, int); int window_copy_key_input(struct window_pane *, int); void window_copy_mouse( ! struct window_pane *, struct client *, struct mouse_event *); void window_copy_redraw_lines(struct window_pane *, u_int, u_int); void window_copy_redraw_screen(struct window_pane *); *************** *** 418,437 **** } void ! window_copy_mouse(struct window_pane *wp, ! unused struct client *c, u_char b, u_char x, u_char y) { struct window_copy_mode_data *data = wp->modedata; struct screen *s = &data->screen; ! if ((b & 3) == 3) return; ! if (x >= screen_size_x(s)) return; ! if (y >= screen_size_y(s)) return; ! window_copy_update_cursor(wp, x, y); if (window_copy_update_selection(wp)) window_copy_redraw_screen(wp); } --- 418,437 ---- } void ! window_copy_mouse( ! struct window_pane *wp, unused struct client *c, struct mouse_event *m) { struct window_copy_mode_data *data = wp->modedata; struct screen *s = &data->screen; ! if ((m->b & 3) == 3) return; ! if (m->x >= screen_size_x(s)) return; ! if (m->y >= screen_size_y(s)) return; ! window_copy_update_cursor(wp, m->x, m->y); if (window_copy_update_selection(wp)) window_copy_redraw_screen(wp); }