Feature Request Tracker item #3484687, was opened at 2012-02-05 09:09
Message generated for change (Comment added) made by clohr
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126849&aid=3484687&group_id=254363

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: clohr (clohr)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add a ButtonMap option to vncviewer

Initial Comment:
Hi,
I propose to add a ButtonMap option to vncviewer to remap pointer buttons.
For instance use "321" button mapping  while connecting to the session of a 
lefthanded user.  

Note that another way to manage this is to reconfigure pointer on server side, 
e.g.: xinput --set-button-map 'Virtual core XTEST pointer' 3 2 1
However it is sometimes not desirable since XTEST may be used by plenty of 
tools.This may disturb the user that sits on the vncserver side.

Regards
Christophe

----------------------------------------------------------------------

>Comment By: clohr (clohr)
Date: 2012-02-07 11:12

Message:
I do agree with you. Most of the time left handed users are considered as
"reversed", and righthanded users are considered as "normal" ;-) leading to
funny situations...

The re-mapping can be performed either by the vncviewer or either by the
vncserver (or both). Unfortunately, the code of vncserver is too
complicated for me. That's why I chose to patch the vncviewer (see the
patch attached to my first post).
 
However, the vncserver could automatically guess a relevant mapping, asking
the X11 server what are the actual physical and logical button-mappings
with something like:
$ xinput -get-button-map 'Virtual core XTEST pointer'
$ xmodmap -pp
Unfortunately, there is no XEvent propagation when the user re-configure
its mouse.
The vncserver should then poll the X11 server, or plays with X11 internals
tricks... Any idea?

----------------------------------------------------------------------

Comment By: D. R. Commander (dcommander)
Date: 2012-02-06 12:10

Message:
Speaking as a left-handed mouser, all versions of VNC (not just Tiger) have
annoyed me in this respect for years.  What I really want is for VNC to
honor the mouse button configuration used on the server's window manager,
but that's never what happens.  Instead, if the server is configured for a
left-handed mouse and the client is configured for a left-handed mouse, the
two cancel each other out.  Thus, I have to re-configure the server for a
right-handed mouse, and then it works properly (but, of course, the next
time I log into the server locally, I have to configure the mouse back to
left-handed mode.)

I think the correct behavior would be to honor the server's button order
rather than the client's, but I'm not sure that that wouldn't require
extending the RFB protocol.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126849&aid=3484687&group_id=254363

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Tigervnc-devel mailing list
Tigervnc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-devel

Reply via email to