From: root Date: Fri, 14 Dec 2007 02:27:54 +0000 (+0000) Subject: mikachu 2 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=b97951526fc8666ffc0f921834bd8783bbe91f0a;p=dana%2Furxvt.git mikachu 2 --- diff --git a/src/command.C b/src/command.C index 900ebc49..d13af0a7 100644 --- a/src/command.C +++ b/src/command.C @@ -1116,17 +1116,15 @@ rxvt_term::sel_scroll_cb (ev::timer &w, int revents) void rxvt_term::slip_wheel_cb (ev::timer &w, int revents) { - if (mouse_slip_wheel_speed == 0 - || mouse_slip_wheel_speed < 0 ? scr_page (DN, -mouse_slip_wheel_speed) - : scr_page (UP, mouse_slip_wheel_speed)) - { - if (view_start == top_row || view_start == 0) - mouse_slip_wheel_speed = 0; + if (mouse_slip_wheel_speed < 0 ? scr_page (DN, -mouse_slip_wheel_speed) + : scr_page (UP, mouse_slip_wheel_speed)) + want_refresh = 1; - want_refresh = 1; + if (view_start == top_row || view_start == 0 || mouse_slip_wheel_speed == 0) + { + mouse_slip_wheel_speed = 0; + w.stop (); } - else - w.stop (); } #endif