[PATCH] Help Viewer - mouse issues
Grigory Trenin
gtrenin at gmail.com
Wed Jan 3 17:19:28 UTC 2007
Hello,
Here are 3 patches to the mouse issues in the Help Viewer.
1) mouse-rightbutton.patch
Returning to a previous node by pressing right mouse button
doesn't work in xterm. It works only in Linux console with GPM.
The problem is that help_event() catches only GPM_UP event,
and it seems that xterm doesn't report which mouse button
was released. Handling GPM_DOWN instead of GPM_UP will fix it.
2) mouse-offbytwo.patch
Last two lines of the help window (the bottom line and a frame)
are not mouse-clickable. So the user will not be able to follow
a link with a mouse, if it is situated at the bottom line.
And the frame needs to be clickable because it serves a special
purpose - page scrolling.
3) mouse-linkfollow.patch
When following a link with a mouse, an extra '\n' is insterted
at the top of the window (just follow any link with a keyboard,
then return back, and follow the same link with a mouse,
and you should see the difference).
P.S.
And finally, it would be nice to add mouse auto-repeating and
wheel-scrolling. I don't provide such a patch because I think
it's better to do it after dealing with above issues.
Regards,
Grigory
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mouse-rightbutton.patch
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20070103/a6050072/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mouse-offbytwo.patch
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20070103/a6050072/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mouse-linkfollow.patch
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20070103/a6050072/attachment-0002.ksh>
More information about the mc-devel
mailing list