ratpoison-devel
[Top][All Lists]
Advanced

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

Re: [RP] mouse stuff (you guys are gonna kill me for this one)


From: fist_187
Subject: Re: [RP] mouse stuff (you guys are gonna kill me for this one)
Date: Mon Sep 22 18:56:07 2003
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030210

John Meacham wrote:

I have a much less ambitious request for mouse functionality. namely, I
would like mouse clicks to cancel command mode.

i guess what it boils down to is i'd like to be able to bind the mouse buttons like i bind the keys in .ratposionrc

bind C-g abort
bind mouseleft abort

then, the only other addition to the code would be determining what frame corresponds to the mouse x and y at the time of the click. probably not too tough. the code might flow something like this:

 1. user does C-t + mousebutton
 2. determine frame from mouse x and y
 3. make that the current frame
and if you decide to implement commands that act on the frame under the mouse, (for example ":next"/":prev:"/":select -"/":other"), do these too:
 4. execute the specified ":command"
 5. do a ":focuslast"

thats all!

maybe --enable-mousebinds as a build option to keep everyone happy?

-ian




reply via email to

[Prev in Thread] Current Thread [Next in Thread]