VirtualBox

Changeset 18307 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 26, 2009 12:18:35 PM (16 years ago)
Author:
vboxsync
Message:

Additions/x11/vboxvideo: add a few fallback cases to the driver

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxutils.c

    r17318 r18307  
    465465    rc = VbglR3SetPointerShapeReq(pVBox->reqp);
    466466    if (RT_FAILURE(rc))
     467    {
    467468        xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Could not hide the virtual mouse pointer.\n");
     469        /* Play safe, and disable the hardware cursor until the next mode
     470         * switch, since obviously something happened that we didn't
     471         * anticipate. */
     472        pVBox->forceSWCursor = TRUE;
     473    }
    468474}
    469475
     
    477483        pVBox->reqp->fFlags = VBOX_MOUSE_POINTER_VISIBLE;
    478484        rc = VbglR3SetPointerShapeReq(pVBox->reqp);
    479         if (RT_FAILURE(rc))
     485        if (RT_FAILURE(rc)) {
    480486            xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Could not unhide the virtual mouse pointer.\n");
     487            /* Play safe, and disable the hardware cursor until the next mode
     488             * switch, since obviously something happened that we didn't
     489             * anticipate. */
     490            pVBox->forceSWCursor = TRUE;
     491        }
    481492    }
    482493}
     
    496507
    497508    rc = VbglR3SetPointerShapeReq(reqp);
    498     if (RT_FAILURE(rc))
     509    if (RT_FAILURE(rc)) {
    499510        xf86DrvMsg(pScrn->scrnIndex, X_ERROR,  "Unable to set the virtual mouse pointer image.\n");
     511        /* Play safe, and disable the hardware cursor until the next mode
     512         * switch, since obviously something happened that we didn't
     513         * anticipate. */
     514        pVBox->forceSWCursor = TRUE;
     515    }
    500516}
    501517
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