[PATCH v2 7/7] dix: NewCurrentScreen must work on pointers where possible

Keith Packard keithp at keithp.com
Thu Sep 15 18:46:09 PDT 2011


On Fri, 2 Sep 2011 11:36:51 +1000, Peter Hutterer <peter.hutterer at who-t.net> wrote:

>  void
>  NewCurrentScreen(DeviceIntPtr pDev, ScreenPtr newScreen, int x, int y)
>  {
> -    SpritePtr pSprite = pDev->spriteInfo->sprite;
> +    DeviceIntPtr ptr;
> +    SpritePtr pSprite;
> +
> +    ptr = IsFloating(pDev) ? pDev : GetXTestDevice(GetMaster(pDev, MASTER_POINTER));

This assumes that any floating device passed to NewCurrentScreen is a
pointer device, right? 

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


More information about the xorg-devel mailing list