[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Exchange mouse button 2 & 3 in X.



Brian K Servis <servis@ecn.purdue.edu> writes:

[snip]

> But be warned that it will effect everything else that uses the 2 and
> 3 buttons.  Examples: Netscape, Emacs, XV, ....  So if you have a 2
> button mouse you now have to hold both down to get button 3 menus on
> these.
>  
> I wish X would have an option to control the Cut/Paste functionality of 
> the buttons.

OK.  If you want to change an xterm's behaviour, try this.  It may not
be the best way to do it, but it seems to work.  Put it in
~/.Xresources or wherever.

XTerm*VT100*Translations:	#override \
			~Ctrl ~Meta <Btn2Down>:start-extend() \n\
			    ~Meta <Btn2Motion>:select-extend() \n\
				~Meta <Btn2Up>:ignore() \n\
			~Ctrl ~Meta <Btn3Down>:ignore() \n\
			    ~Meta <Btn3Motion>:ignore() \n\
			  ~Ctrl ~Meta <Btn3Up>:insert-selection(PRIMARY, CUT_BUFFER0)

You could probably do something similar for *Text.translations for
Athena text widgets, and for *XmText.translations
and*XmTextField.translations for Motif text widgets.

-- 
		Carey Evans  <*>  c.evans@clear.net.nz

kernel: Warning: possible SYN flooding. Sending cookies. 
kernel: validated probe(100007f, 100007f, 11557, 5010, -1645409555) 


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: