[PATCH] Replace miPointerCurrentScreen with miPointerGetScreen.

Julien Cristau jcristau at debian.org
Fri Oct 2 14:36:34 PDT 2009


On Fri, Oct  2, 2009 at 13:42:48 -0700, Jamey Sharp wrote:

> diff --git a/hw/xfree86/common/xf86RandR.c b/hw/xfree86/common/xf86RandR.c
> index 02dcc34..807ce79 100644
> --- a/hw/xfree86/common/xf86RandR.c
> +++ b/hw/xfree86/common/xf86RandR.c
> @@ -307,7 +307,7 @@ xf86RandRSetConfig (ScreenPtr		pScreen,
>      /*
>       * Move the cursor back where it belongs; SwitchMode repositions it
>       */
> -    if (pScreen == miPointerCurrentScreen ())
> +    if (pScreen == miPointerGetScreen (inputInfo.pointer))
>      {
>  	px = (px >= pScreen->width ? (pScreen->width - 1) : px);
>  	py = (py >= pScreen->height ? (pScreen->height - 1) : py);

Should this loop over the master pointers instead?

Cheers,
Julien


More information about the xorg-devel mailing list