[PATCH 1/3] Xserver need not be compatible with old versions of xserver.

Mark Kettenis mark.kettenis at xs4all.nl
Fri Sep 17 03:19:57 PDT 2010


> From: Jamey Sharp <jamey at minilop.net>
> Date: Fri, 17 Sep 2010 11:48:32 +0200
>
> diff --git a/hw/xfree86/modes/xf86Cursors.c b/hw/xfree86/modes/xf86Cursors.c
> index 6b2ae97..ab07b60 100644
> --- a/hw/xfree86/modes/xf86Cursors.c
> +++ b/hw/xfree86/modes/xf86Cursors.c
> @@ -227,11 +227,7 @@ xf86_set_cursor_colors (ScrnInfoPtr scrn, int bg, int fg)
>      CursorPtr		cursor = xf86_config->cursor;
>      int			c;
>      CARD8		*bits = cursor ?
> -#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(7,0,0,0,0)
>          dixLookupPrivate(&cursor->devPrivates, CursorScreenKey(screen))
> -#else
> -        cursor->devPriv[screen->myNum]
> -#endif

Wait a moment.  You're keeping the code that's used for *older* Xorg
versions in favour of the code used in newer versions?


More information about the xorg-devel mailing list