[PATCH] xvfb: add randr support

Keith Packard keithp at keithp.com
Fri Jun 7 09:46:55 PDT 2013


Mike Frysinger <vapier at gentoo.org> writes:

> +static Bool
> +vfbRRScreenSetSize(ScreenPtr pScreen, CARD16 width, CARD16 height,
> +                   CARD32 mmWidth, CARD32 mmHeight)
> +{

This can be a whole lot shorter if you use SetRootClip, take a look at
hw/xwin/winrandr.c. Should be something like

        SetRootClip(pScreen, FALSE);

        pScreen->width = width;
        pScreen->height = height;
        pScreen->mmWidth = mmWidth;
        pScreen->mmHeight = mmHeight;

        SetRootClip(pScreen, TRUE);

        RRScreenSizeNotify(pScreen);
        
Other than that, this looks fine to me!

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20130607/a3838722/attachment.pgp>


More information about the xorg-devel mailing list