From: Eamon Walsh Date: Mon, 18 Dec 2006 19:05:19 +0000 (-0500) Subject: Revert "Convert callers of LookupWindow() to dixLookupWindow()." X-Git-Tag: vmware-10_15_0~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=188c2b44f0f47093092414f9364a52cc2d5016ad;p=platform%2Fupstream%2Fxf86-video-vmware.git Revert "Convert callers of LookupWindow() to dixLookupWindow()." This reverts commit 1f298c24fe1dde35f0d77cc34518eb9c2b873fc5. --- diff --git a/src/vmwarexinerama.c b/src/vmwarexinerama.c index 19ea1bc..204bade 100644 --- a/src/vmwarexinerama.c +++ b/src/vmwarexinerama.c @@ -115,9 +115,8 @@ VMwareXineramaGetState(ClientPtr client) VMWAREPtr pVMWARE; REQUEST_SIZE_MATCH(xPanoramiXGetStateReq); - n = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess); - if (n != Success) - return n; + pWin = LookupWindow(stuff->window, client); + if(!pWin) return BadWindow; if (!(ext = CheckExtension(PANORAMIX_PROTOCOL_NAME))) { return BadMatch; @@ -168,9 +167,8 @@ VMwareXineramaGetScreenCount(ClientPtr client) VMWAREPtr pVMWARE; REQUEST_SIZE_MATCH(xPanoramiXGetScreenCountReq); - n = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess); - if (n != Success) - return n; + pWin = LookupWindow(stuff->window, client); + if(!pWin) return BadWindow; if (!(ext = CheckExtension(PANORAMIX_PROTOCOL_NAME))) { return BadMatch; @@ -221,9 +219,8 @@ VMwareXineramaGetScreenSize(ClientPtr client) VMWAREPtr pVMWARE; REQUEST_SIZE_MATCH(xPanoramiXGetScreenSizeReq); - n = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess); - if (n != Success) - return n; + pWin = LookupWindow (stuff->window, client); + if(!pWin) return BadWindow; if (!(ext = CheckExtension(PANORAMIX_PROTOCOL_NAME))) { return BadMatch;