… | |
… | |
25 | * - extensive modifications |
25 | * - extensive modifications |
26 | * Copyright (c) 1998 Alfredo K. Kojima <kojima@windowmaker.org> |
26 | * Copyright (c) 1998 Alfredo K. Kojima <kojima@windowmaker.org> |
27 | * Copyright (c) 2001 Marius Gedminas |
27 | * Copyright (c) 2001 Marius Gedminas |
28 | * - Ctrl/Mod4+Tab works like Meta+Tab (options) |
28 | * - Ctrl/Mod4+Tab works like Meta+Tab (options) |
29 | * Copyright (c) 2003 Rob McMullen <robm@flipturn.org> |
29 | * Copyright (c) 2003 Rob McMullen <robm@flipturn.org> |
30 | * Copyright (c) 2003-2006 Marc Lehmann <pcg@goof.com> |
30 | * Copyright (c) 2003-2007 Marc Lehmann <pcg@goof.com> |
31 | * |
31 | * |
32 | * This program is free software; you can redistribute it and/or modify |
32 | * This program is free software; you can redistribute it and/or modify |
33 | * it under the terms of the GNU General Public License as published by |
33 | * it under the terms of the GNU General Public License as published by |
34 | * the Free Software Foundation; either version 2 of the License, or |
34 | * the Free Software Foundation; either version 2 of the License, or |
35 | * (at your option) any later version. |
35 | * (at your option) any later version. |
… | |
… | |
1114 | |
1114 | |
1115 | #if defined(MOUSE_WHEEL) && defined(MOUSE_SLIP_WHEELING) |
1115 | #if defined(MOUSE_WHEEL) && defined(MOUSE_SLIP_WHEELING) |
1116 | void |
1116 | void |
1117 | rxvt_term::slip_wheel_cb (ev::timer &w, int revents) |
1117 | rxvt_term::slip_wheel_cb (ev::timer &w, int revents) |
1118 | { |
1118 | { |
1119 | if (mouse_slip_wheel_speed == 0 |
|
|
1120 | || mouse_slip_wheel_speed < 0 ? scr_page (DN, -mouse_slip_wheel_speed) |
1119 | if (mouse_slip_wheel_speed < 0 ? scr_page (DN, -mouse_slip_wheel_speed) |
1121 | : scr_page (UP, mouse_slip_wheel_speed)) |
1120 | : scr_page (UP, mouse_slip_wheel_speed)) |
|
|
1121 | want_refresh = 1; |
|
|
1122 | |
|
|
1123 | if (view_start == top_row || view_start == 0 || mouse_slip_wheel_speed == 0) |
1122 | { |
1124 | { |
1123 | if (view_start == top_row || view_start == 0) |
|
|
1124 | mouse_slip_wheel_speed = 0; |
1125 | mouse_slip_wheel_speed = 0; |
1125 | |
|
|
1126 | want_refresh = 1; |
|
|
1127 | } |
|
|
1128 | else |
|
|
1129 | w.stop (); |
1126 | w.stop (); |
|
|
1127 | } |
1130 | } |
1128 | } |
1131 | #endif |
1129 | #endif |
1132 | |
1130 | |
1133 | #if LINUX_YIELD_HACK |
1131 | #if LINUX_YIELD_HACK |
1134 | static struct event_handler |
1132 | static struct event_handler |