VirtualBox

Changeset 22685 in vbox for trunk/src/VBox/Additions/x11


Ignore:
Timestamp:
Sep 1, 2009 9:58:57 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
51797
Message:

Additions/x11/vboxmouse: fix a segfault on X.Org Server 1.7 due to a missing initialisation call

File:
1 edited

Legend:

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

    r22589 r22685  
    7474}
    7575
     76static void
     77VBoxPtrCtrlProc(DeviceIntPtr device, PtrCtrl *ctrl)
     78{
     79    /* Nothing to do, dix handles all settings */
     80}
     81
    7682static int
    7783VBoxInit(DeviceIntPtr device)
    7884{
    7985    CARD8 map[2] = { 0, 1 };
    80     InputInfoPtr pInfo;
    81 
    82     pInfo = device->public.devicePrivate;
    8386    Atom axis_labels[2] = { 0, 0 };
    8487    Atom button_labels[2] = { 0, 0 };
    85 
     88    InputInfoPtr pInfo;
     89
     90    pInfo = device->public.devicePrivate;
    8691    if (!InitValuatorClassDeviceStruct(device, 2,
    8792#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
     
    99104#endif
    100105                                     map))
     106        return !Success;
     107    if (!InitPtrFeedbackClassDeviceStruct(device, VBoxPtrCtrlProc))
    101108        return !Success;
    102109
Note: See TracChangeset for help on using the changeset viewer.

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