VirtualBox

Changeset 64165 in vbox for trunk/src


Ignore:
Timestamp:
Oct 6, 2016 2:05:16 PM (8 years ago)
Author:
vboxsync
Message:

bugref:8087: Additions/x11: support non-root X server: now the X server interprets EINVAL from SetCursor2 to mean API not supported. So we return EBUSY if the host currently does not want to set a hardware cursor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/drm/vbox_mode.c

    r63772 r64165  
    731731    if (   caps & VMMDEV_MOUSE_HOST_CANNOT_HWPOINTER
    732732        || !(caps & VMMDEV_MOUSE_HOST_WANTS_ABSOLUTE))
    733         return -EINVAL;
     733        /* -EINVAL means cursor_set2() not supported, -EAGAIN means
     734         * retry at once. */
     735        return -EBUSY;
    734736
    735737#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0)
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