VirtualBox

Changeset 21712 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jul 17, 2009 9:26:28 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt: fix absolute mouse pointer position reporting to make the Moblin toolbar work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp

    r21711 r21712  
    31323132            QPoint cpnt = viewportToContents (aPos);
    31333133            if (cpnt.x() < 0) cpnt.setX (0);
    3134             else if (cpnt.x() >= cw) cpnt.setX (cw - 1);
     3134            else if (cpnt.x() > cw) cpnt.setX (cw);
    31353135            if (cpnt.y() < 0) cpnt.setY (0);
    3136             else if (cpnt.y() >= ch) cpnt.setY (ch - 1);
     3136            else if (cpnt.y() > ch) cpnt.setY (ch);
    31373137
    31383138            CMouse mouse = mConsole.GetMouse();
    3139             mouse.PutMouseEventAbsolute (cpnt.x() + 1, cpnt.y() + 1,
    3140                                          wheel, state);
     3139            mouse.PutMouseEventAbsolute (cpnt.x(), cpnt.y(), wheel, state);
    31413140            return true; /* stop further event handling */
    31423141        }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette