setuv (time, xe->xmotion.time);
setiv (x, xe->xmotion.x);
setiv (y, xe->xmotion.y);
- setiv (row, xe->xmotion.y / term->fheight);
+ setiv (row, xe->xmotion.y / term->fheight + term->view_start);
setiv (col, xe->xmotion.x / term->fwidth);
setiv (x_root, xe->xmotion.x_root);
setiv (y_root, xe->xmotion.y_root);
the hook returns true, then the even will be ignored by rxvt-unicode.
The event is a hash with most values as named by Xlib (see the XEvent
-manpage), with the additional members C<row> and C<col>, which are the row
-and column under the mouse cursor.
+manpage), with the additional members C<row> and C<col>, which are the
+(real, not screen-based) row and column under the mouse cursor.
C<on_key_press> additionally receives the string rxvt-unicode would
output, if any, in locale-specific encoding.