VirtualBox

Changeset 15946 in vbox


Ignore:
Timestamp:
Jan 14, 2009 6:06:27 PM (16 years ago)
Author:
vboxsync
Message:

Additions/x11: fix a segfault in vboxmouse with Xorg server 1.5 under some circumstances

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/xmouse/xorg15/vboxmouse.c

    r12587 r15946  
    5656#include <xf86Xinput.h>
    5757#include <exevents.h>
     58#include <mipointer.h>
    5859
    5960#include <xf86Module.h>
     
    6768    uint32_t cx, cy, fFeatures;
    6869
    69     if (RT_SUCCESS(VbglR3GetMouseStatus(&fFeatures, &cx, &cy)))
     70    /* The first test here is a workaround for an apparant bug in Xorg Server 1.5 */
     71    if (   miPointerGetScreen(pInfo->dev) != NULL
     72        && RT_SUCCESS(VbglR3GetMouseStatus(&fFeatures, &cx, &cy)))
    7073        /* send absolute movement */
    7174        xf86PostMotionEvent(pInfo->dev, 1, 0, 2, cx, cy);
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