[PATCH] Xephyr/dri: register screen and window privates on init

Julien Cristau jcristau at debian.org
Tue Jul 26 11:41:58 PDT 2011


On Thu, Jul  7, 2011 at 19:18:03 +0200, Julien Cristau wrote:

> Fixes assertion failure when calling dixSetPrivate
> Debian bug#632549 <http://bugs.debian.org/632549>
> 
> Reported-and-tested-by: Mohammed Sameer <msameer at foolab.org>
> Signed-off-by: Julien Cristau <jcristau at debian.org>
> ---
>  hw/kdrive/ephyr/ephyrdriext.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
Ping.  Anyone?

> diff --git a/hw/kdrive/ephyr/ephyrdriext.c b/hw/kdrive/ephyr/ephyrdriext.c
> index 6945f5b..0bd51b2 100644
> --- a/hw/kdrive/ephyr/ephyrdriext.c
> +++ b/hw/kdrive/ephyr/ephyrdriext.c
> @@ -1394,6 +1394,10 @@ ephyrDRIExtensionInit (ScreenPtr a_screen)
>          EPHYR_LOG_ERROR ("failed to register DRI extension\n") ;
>          goto out ;
>      }
> +    if (!dixRegisterPrivateKey(&ephyrDRIScreenKeyRec, PRIVATE_SCREEN, 0))
> +        goto out ;
> +    if (!dixRegisterPrivateKey(&ephyrDRIWindowKeyRec, PRIVATE_WINDOW, 0))
> +        goto out ;
>      screen_priv = calloc(1, sizeof (EphyrDRIScreenPrivRec)) ;
>      if (!screen_priv) {
>          EPHYR_LOG_ERROR ("failed to allocate screen_priv\n") ;
> -- 
> 1.7.2.5
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
> 


More information about the xorg-devel mailing list