[PATCH 01/30] composite: Stop setting pScreen for nothing.

Cyril Brulebois kibi at debian.org
Fri May 20 08:35:11 PDT 2011


Signed-off-by: Cyril Brulebois <kibi at debian.org>
---
 composite/compext.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/composite/compext.c b/composite/compext.c
index e0d8e75..6f8d1f3 100644
--- a/composite/compext.c
+++ b/composite/compext.c
@@ -330,12 +330,10 @@ ProcCompositeReleaseOverlayWindow (ClientPtr client)
 {
     REQUEST(xCompositeReleaseOverlayWindowReq); 
     WindowPtr pWin;
-    ScreenPtr pScreen;
     CompOverlayClientPtr pOc;
 
     REQUEST_SIZE_MATCH(xCompositeReleaseOverlayWindowReq);
     VERIFY_WINDOW(pWin, stuff->window, client, DixGetAttrAccess);
-    pScreen = pWin->drawable.pScreen;
 
     /* 
      * Has client queried a reference to the overlay window
@@ -854,7 +852,6 @@ PanoramiXCompositeReleaseOverlayWindow (ClientPtr client)
 {
     REQUEST(xCompositeReleaseOverlayWindowReq);
     WindowPtr pWin;
-    ScreenPtr pScreen;
     CompOverlayClientPtr pOc;
     PanoramiXRes *win;
     int i, rc;
@@ -874,7 +871,6 @@ PanoramiXCompositeReleaseOverlayWindow (ClientPtr client)
 	    client->errorValue = stuff->window;
 	    return rc;
 	}
-	pScreen = pWin->drawable.pScreen;
 
 	/*
 	 * Has client queried a reference to the overlay window
-- 
1.7.5.1



More information about the xorg-devel mailing list