VirtualBox

Changeset 35509 in vbox for trunk/src


Ignore:
Timestamp:
Jan 12, 2011 4:58:16 PM (14 years ago)
Author:
vboxsync
Message:

FE/Qt: 5465: Mouse-cursor-shape should be updated on machine-state-change (for example, machine become paused/unpoused).

File:
1 edited

Legend:

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

    r34778 r35509  
    306306            break;
    307307    }
     308
     309    /* Notify all listeners: */
     310    emit mouseStateChanged(mouseState());
    308311}
    309312
     
    380383
    381384    /* Otherwise we should show host pointer with guest shape assigned to it if:
    382      * mouse is 'integrated', 'absolute', valid pointer shape is present. */
    383     if (uisession()->isMouseIntegrated() &&
     385     * machine is NOT 'paused', mouse is 'integrated', 'absolute', valid pointer shape is present. */
     386    if (!uisession()->isPaused() &&
     387        uisession()->isMouseIntegrated() &&
    384388        uisession()->isMouseSupportsAbsolute() &&
    385389        uisession()->isValidPointerShapePresent())
     
    393397
    394398    /* There could be other states covering such situations as:
    395      * 1. mouse is 'not captured', 'integrated', 'not absolute' or
    396      * 2. mouse is 'not captured', 'not integrated', 'absolute'.
     399     * 1. machine is 'paused' or
     400     * 2. mouse is 'not captured', 'integrated', 'not absolute' or
     401     * 3. mouse is 'not captured', 'not integrated', 'absolute'.
    397402     * We have nothing to do with that except just unset the cursor. */
    398403    {
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