There's a nice comment in lwlib/xlwscrollbar.c on how to get XEmacs to
do Athena-style left/right mouse bindings. Unfortunately, it's wrong.
It ends up doing a grab on a Btn3Down, and no release on Btn3Up. It
took me a while to find it because the *default* binding for Btn1Up
was already Release() (but it wasnt for Btn3Up). So anybody who follows
the directions in the comment gets their keyboard grabbed until they hit
a mouse button again....
Patch attached.
/Valdis
% cvs diff lwlib/xlwscrollbar.c
Index: lwlib/xlwscrollbar.c
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs/lwlib/xlwscrollbar.c,v
retrieving revision 1.14
diff -u -r1.14 xlwscrollbar.c
--- lwlib/xlwscrollbar.c 2001/04/12 18:21:56 1.14
+++ lwlib/xlwscrollbar.c 2001/10/10 16:39:51
@@ -30,7 +30,8 @@
*
* Emacs*XlwScrollBar.translations: #override \n\
* <Btn1Down>: PageDownOrRight() \n\
- * <Btn3Down>: PageUpOrLeft()
+ * <Btn3Down>: PageUpOrLeft() \n\
+ * <Btn3Up>: Release()
*
*/
Show replies by date