VirtualBox

Changeset 55723 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
May 7, 2015 1:28:10 PM (10 years ago)
Author:
vboxsync
Message:

Additions/x11/vboxvideo: pass on virtual size to input devices when we resize the screen.

Location:
trunk/src/VBox/Additions/x11
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/undefined_xorg

    r55472 r55723  
    108108RRCrtcNotify
    109109RRGetInfo
    110 RRScreenSizeNotify
     110RRScreenSizeSet
    111111RRTellChanged
    112112setenv
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c

    r55559 r55723  
    10711071            xf86ScrnToScreen(pScrn)->width = cx;
    10721072            xf86ScrnToScreen(pScrn)->height = cy;
    1073 #if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) >= 14
    1074             xf86UpdateDesktopDimensions();
    1075 #elif GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) >= 12
    1076             screenInfo.width = cx;
    1077             screenInfo.height = cy;
    1078 #endif
    10791073            adjustScreenPixmap(pScrn, cx, cy);
    10801074            vbvxSetSolarisMouseRange(cx, cy);
     
    11241118    if (!fLimitedContext)
    11251119    {
    1126         RRScreenSizeNotify(xf86ScrnToScreen(pScrn));
     1120        /* We use RRScreenSizeSet() here and not RRScreenSizeNotify() because
     1121         * the first also pushes the virtual screen size to the input driver.
     1122         * We were doing this manually by setting screenInfo.width and height
     1123         * and calling xf86UpdateDesktopDimensions() where appropriate, but this
     1124         * failed on Ubuntu 12.04.0 due to a problematic X server back-port. */
     1125        RRScreenSizeSet(xf86ScrnToScreen(pScrn), xf86ScrnToScreen(pScrn)->width, xf86ScrnToScreen(pScrn)->height,
     1126                        xf86ScrnToScreen(pScrn)->mmWidth, xf86ScrnToScreen(pScrn)->mmHeight);
    11271127        RRTellChanged(xf86ScrnToScreen(pScrn));
    11281128    }
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