Mouse right-click problem
RTreuer "at" ati.com
Thu, 22 Jun 2000 23:21:09 +0000
While I don't have a solution for you, I have some suggestions
to help you debug the problem.
 I would suspect the window manager to be guilty of intercepting
the right-mouse button events, before suspecting the Xvnc server itself.
If the problem shows up with a window manager running, and goes away
when no window manager is running, there is probably something unusual
in the set-up of the window manager.
Let's say you use twm (or mwm, or olwm), then your "xstartup" script looks
something like this:
xsetroot -solid grey
Replace the line "xterm &" (or add another line after it),
with the command for your program, such as:
HP OpenView/Network Node Manager, or Zmail.
Then delete the last line "twm &", which means that your program(s) will
be the only thing(s) running, without benefit of a window manager.
Then invoke your vncserver.pl script, and see if the problem still shows up.
You can always add a window manager to a running X session, just type:
twm -display myhost:2 >& /dev/null &
After using it a while, you can kill it, and even replace it with
a different window manager:
olwm -display myhost:2 >& /dev/null &
In fact, you can kill and restart the window manager for any currently
running session, and Xvnc and all other X-clients should survive.
 You can also remap the mouse button-events seen by Xvnc, using
the "xmodmap" command.
will show the current mouse pointer mappings.
xmodmap -e "pointer = 1 3 2"
will swap the middle and right mouse buttons, and
xmodmap -e "pointer = 1 2 3"
will restore the default button mapping.
> -----Original Message-----
> From: jensen "at" Adobe.COM
> Sent: Thursday, June 22, 2000 3:44 PM
> To: vnc-list "at" uk.research.att.com
> Cc: jensen "at" Adobe.COM
> Subject: Re: Mouse right-click problem
> >From: Bob Fulwiler <bobf "at" swamp.ns.cs.boeing.com>
> >Date: Thu Jun 22 2000 12:20pm
> >To: VNC Mail List <vnc-list "at" uk.research.att.com>
> >Subj: Mouse right-click problem
> >Good Day Folks,
> >I have a situation which I am hoping you can help me with.
> >Environment: vnc servers running on solaris 2.6; vnc
> viewers running on
> >solaris, WinNT, and
> >Win95/98. Main application is HP OpenView/Network Node Manager.
> >Problem: When users right-click on an Openview map object (host,
> >router, etc.), they shoul be
> >presented with a dialog showing certain object
> properties. This works
> >just fine in a native OV
> >window. However, with VNC, the right click produces no
> results. It
> >seems that the OV application is
> >not receiving the mouse event.
> >Has anyone had a similar proble? If so, how did you solve it?
> >Bob Fulwiler
> >UNIX System Administrator
> >425 865-4712
> >Bellevue Site Operations
> I have the exact same problem. I run the Xvnc server on a linux
> machine. I connect with a viewer from either an NT machine, or
> sometimes I run a simple X session on the same machine (the Linux
> box) and run the viewer there, connecting to the Xvnc server running
> in the background. In this last scenario the viewer/server use shared
> memory for communicating so there is almost no speed penalty.
> Oops, back to the original problem: I run Zmail (a Motif mail
> application) and it does not respond to right mouse clicks.
> I have programmed Zmail with various pull-down menus hooked to
> the right mouse button, but I can't get to them. When I run
> Zmail in a normal X session (non-VNC) then I get the right-button
> menus without problems.
> It is interesting however, that in the root window in the VNC
> session the window manager (twm) DOES get the right mouse button
> events because the menu I created for it pops up.
> I have not been able to solve this problem yet. I think there
> might be a problem with the mouse button event forwarding from
> the Xvnc server. The reason I think the problem is in the server
> and not the viewer is that it happens in both the Windows viewer
> and the X viewer.
> Freddy Jensen, Sr. Computer Scientist, Adobe Systems Incorporated
> 345 Park Avenue, San Jose, CA 95110-2704, USA, Ph: (408) 536-2869
> Email: jensen "at" adobe.com,
To unsubscribe, send a message with the line: unsubscribe vnc-list
to majordomo "at" uk.research.att.com
See also: http://www.uk.research.att.com/vnc/intouch.html