ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/command.C
(Generate patch)

Comparing rxvt-unicode/src/command.C (file contents):
Revision 1.493 by sf-exg, Sun Aug 21 20:17:40 2011 UTC vs.
Revision 1.494 by sf-exg, Mon Aug 22 17:23:56 2011 UTC

1666 XQueryPointer (dpy, scrollBar.win, 1666 XQueryPointer (dpy, scrollBar.win,
1667 &unused_root, &unused_child, 1667 &unused_root, &unused_child,
1668 &unused_root_x, &unused_root_y, 1668 &unused_root_x, &unused_root_y,
1669 &ev.xbutton.x, &ev.xbutton.y, 1669 &ev.xbutton.x, &ev.xbutton.y,
1670 &unused_mask); 1670 &unused_mask);
1671 scr_move_to (scrollbar_position (ev.xbutton.y) - csrO, 1671 scr_move_to (scrollBar.position (ev.xbutton.y) - csrO,
1672 scrollBar.size ()); 1672 scrollBar.size ());
1673 want_refresh = 1; 1673 want_refresh = 1;
1674 scrollBar.show (1); 1674 scrollBar.show (1);
1675 } 1675 }
1676 break; 1676 break;
2044 csrO = scrollBar.bot - scrollBar.top; 2044 csrO = scrollBar.bot - scrollBar.top;
2045 break; 2045 break;
2046 } 2046 }
2047 2047
2048 if (scrollBar.style == R_SB_XTERM 2048 if (scrollBar.style == R_SB_XTERM
2049 || scrollbar_above_slider (ev.y) 2049 || scrollBar.above_slider (ev.y)
2050 || scrollbar_below_slider (ev.y)) 2050 || scrollBar.below_slider (ev.y))
2051 scr_move_to (scrollbar_position (ev.y) - csrO, scrollBar.size ()); 2051 scr_move_to (scrollBar.position (ev.y) - csrO, scrollBar.size ());
2052 2052
2053 scrollBar.state = STATE_MOTION; 2053 scrollBar.state = STATE_MOTION;
2054 break; 2054 break;
2055 2055
2056 case Button1: 2056 case Button1:
2059 /* FALLTHROUGH */ 2059 /* FALLTHROUGH */
2060 2060
2061 case Button3: 2061 case Button3:
2062 if (scrollBar.style != R_SB_XTERM) 2062 if (scrollBar.style != R_SB_XTERM)
2063 { 2063 {
2064 if (scrollbar_above_slider (ev.y)) 2064 if (scrollBar.above_slider (ev.y))
2065# ifdef RXVT_SCROLL_FULL 2065# ifdef RXVT_SCROLL_FULL
2066 scr_page (UP, nrow - 1); 2066 scr_page (UP, nrow - 1);
2067# else 2067# else
2068 scr_page (UP, nrow / 4); 2068 scr_page (UP, nrow / 4);
2069# endif 2069# endif
2070 else if (scrollbar_below_slider (ev.y)) 2070 else if (scrollBar.below_slider (ev.y))
2071# ifdef RXVT_SCROLL_FULL 2071# ifdef RXVT_SCROLL_FULL
2072 scr_page (DN, nrow - 1); 2072 scr_page (DN, nrow - 1);
2073# else 2073# else
2074 scr_page (DN, nrow / 4); 2074 scr_page (DN, nrow / 4);
2075# endif 2075# endif
2078 } 2078 }
2079 else 2079 else
2080 { 2080 {
2081 scr_page ((ev.button == Button1 ? DN : UP), 2081 scr_page ((ev.button == Button1 ? DN : UP),
2082 (nrow 2082 (nrow
2083 * scrollbar_position (ev.y) 2083 * scrollBar.position (ev.y)
2084 / scrollBar.size ())); 2084 / scrollBar.size ()));
2085 } 2085 }
2086 2086
2087 break; 2087 break;
2088 } 2088 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines