[PATCH 1/2] Properly un/rewrap CreateWindow
Daniel Stone
daniel at fooishbar.org
Tue Nov 17 16:58:25 PST 2009
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.x.org/archives/xorg-devel/attachments/20091118/040c310f/attachment.pgp
More information about the xorg-devel
mailing list