VirtualBox

Changeset 60919 in vbox for trunk


Ignore:
Timestamp:
May 10, 2016 10:33:28 AM (9 years ago)
Author:
vboxsync
Message:

bugref:8087: Additions/x11: support non-root X server: work around a problem with wrong cursor hot-spot positions in the kernel video driver after a host save and restore.

File:
1 edited

Legend:

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

    r60357 r60919  
    689689    bool src_isiomem;
    690690
     691    /* Re-set this regularly as in 5.0.20 and earlier the information was lost
     692     * on save and restore. */
     693    VBoxHGSMIUpdateInputMapping(&vbox->submit_info, 0, 0,
     694                                vbox->input_mapping_width,
     695                                vbox->input_mapping_height);
    691696    if (!handle) {
    692697        bool cursor_enabled = false;
     
    784789    rc = VBoxHGSMICursorPosition(&vbox->submit_info, true, x + crtc->x,
    785790                                 y + crtc->y, &host_x, &host_y);
    786     if (RT_FAILURE(rc))
     791    /* Work around a bug after save and restore in 5.0.20 and earlier. */
     792    if (RT_FAILURE(rc) || (host_x == 0 && host_y == 0))
    787793        return -RTErrConvertToErrno(rc);
    788794    if (x + crtc->x < host_x)
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