On Tue, Nov 17, 2009 at 01:59:42PM -0500, Adam Jackson wrote:
>  static Bool
>  DUMMYCreateWindow(WindowPtr pWin)
>  {
>      DUMMYPtr dPtr = DUMMYPTR(DUMMYScrn);
>      WindowPtr pWinRoot;
>      int ret;
> -     
> +
> +    pScreen->CreateWindow = dPtr->CreateWindow;
>      ret = dPtr->CreateWindow(pWin);
> +    pScreen->CreateWindow = DUMMYCreateWindow;
> +
>      if(ret != TRUE)
>       return(ret);

Hm, is this canon? I thought the generally-accepted way to wrap would've
been also to set dPtr->CreateWindow = pScreen->CreateWindow after
calling the saved function, but I could be wrong.

Cheers,
Daniel

Attachment: pgpbeuLwULv9d.pgp
Description: PGP signature

_______________________________________________
xorg-devel mailing list
[email protected]
http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to