#22 Right mouse drag not working in TurboVnc Java viewer

closed-works-for-me
DRC
TurboVNC (11)
5
2014-04-28
2010-10-20
shiva s
No

When i press right mouse and drag it, it is not working in the turbovnc java vncviewer. Seems like the viewer is not sending the drag event to the server in this case. However, on mouse release it seems to be sending the event to server. In c++ viewer this is working

Discussion

  • shiva s
    shiva s
    2010-10-20

    • labels: --> TurboVNC
     
  • DRC
    DRC
    2010-10-20

    I can't reproduce this issue.

    There is no such thing as a "drag event". There are only mouse motion events and button up/down events. If the viewer is sending motion events with Button 1 down, it will send those same events with Button 2 or Button 3 down as well.

    I modified GLXSpheres to allow movement with either a left, middle, or right mouse drag, and it works fine when used with both the Java and C++ TurboVNC viewers. Attaching the modified source. Try it out and see if it works for you ('vglrun glxspheres -i' enables interactive mode, which allows you to drag the mouse to move the spheres.) If you are still able to reproduce the problem using this version of GLXspheres, then perhaps there is a bug in your Java installation or something like that.

     
  • DRC
    DRC
    2010-10-20

     
    Attachments
  • shiva s
    shiva s
    2010-10-21

    @ dcommander

    Hi, I Downloaded the file but i am not able to compile it. Its giving following errors

    glxspheres.c:30:21: error: rrtimer.h: No such file or directory
    glxspheres.c:31:20: error: rrutil.h: No such file or directory

     
  • DRC
    DRC
    2010-10-21

    Those are in the VirtualGL source.

     
  • shiva s
    shiva s
    2010-10-22

    Hi,
    After I discovered that your code is working correctly, I thought there might be a problem in my project code so I checked it.

    The real problem I am facing is:
    I am using a string which is formed by "mouse buttons" + "keyboadModifiers value" so that it can be used as shortcut to perform a task.

    But keyboardModifiers value is always including "META" key value whenever I drag mouse with RIGHT button down. So it is executing wrong tasks.

    I am also facing this problem in UBUNTU 10.04. For example:
    I installed "gnome-do" which has default shortcut "META+SPACE", and did vnc to that system with javavnc . every time i type "SPACE" in the terminal. "gnome-do" window pops up.

     
  • DRC
    DRC
    2010-10-22

    I am noticing some meta key weirdness under Ubuntu 10-- the meta key seems to be stuck, so every time I press M, it tries to launch the mail program. However, this happens in the C++ as well as the Java viewer, so I'm not sure if it's even the same problem.

    On what Linux flavor did you observe the initial problem?

     
  • DRC
    DRC
    2010-10-22

    OK, never mind about the previous comment. That was due to this bug in indicator-applet:

    https://bugs.launchpad.net/ubuntu/+source/indicator-applet/+bug/568401

    which was fixed by upgrading to the latest version.

    So, I guess I'm back to not being able to reproduce the initial problem. If you can provide a more exact test procedure or, preferably, a test program that demonstrates this, that would be helpful.

     
  • shiva s
    shiva s
    2010-10-26

    Hi,
    Now we are ignoring the meta key so every thing is working fine.

    Please feel free to close this bug.

    Thank you.

     
  • DRC
    DRC
    2010-10-26

    • status: open --> closed-works-for-me
     
  • DRC
    DRC
    2011-12-17

    • milestone: --> VirtualGL: General issue
     
  • DRC
    DRC
    2011-12-17

    • assigned_to: nobody --> dcommander
     
  • DRC
    DRC
    2014-04-28

    Ticket moved from /p/virtualgl/bugs/14/

    Can't be converted:

    • _milestone: VirtualGL: General issue
     
  • DRC
    DRC
    2014-04-28

    • Category: VirtualGL: General issue --> Legacy (1.1 and prior) Java Viewer