VirtualBox

Changeset 30448 in vbox


Ignore:
Timestamp:
Jun 25, 2010 11:49:25 AM (14 years ago)
Author:
vboxsync
Message:

FE/Qt: 5085: Do not automatically capture mouse in case of mouse-absolute mode toggles off, just move the guest-mouse into relative mode and notify the user if that warning is not restricted.

File:
1 edited

Legend:

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

    r30411 r30448  
    245245        mouse.PutMouseEventAbsolute(-1, -1, 0, 0, 0);
    246246    }
     247#if 0 /* current team's decision is NOT to capture mouse on mouse-absolute mode loosing! */
    247248    /* If mouse-integration deactivated or mouse doesn't supports absolute pointing: */
    248249    else
     
    266267            captureMouse(iFocusedView);
    267268    }
     269#else /* but just to switch the guest mouse into relative mode! */
     270    /* If mouse-integration deactivated or mouse doesn't supports absolute pointing: */
     271    else
     272    {
     273        /* Switch guest mouse to the relative mode: */
     274        CMouse mouse = session().GetConsole().GetMouse();
     275        mouse.PutMouseEvent(0, 0, 0, 0, 0);
     276    }
     277#endif
    268278
    269279    /* Notify user about mouse supports or not absolute pointing if that method was called by signal: */
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