[PATCH 1/2] Properly un/rewrap CreateWindow

Adam Jackson ajax at redhat.com
Tue Nov 17 10:59:42 PST 2009


Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 src/dummy_driver.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/dummy_driver.c b/src/dummy_driver.c
index 6f4b562..560b9b5 100644
--- a/src/dummy_driver.c
+++ b/src/dummy_driver.c
@@ -759,20 +759,20 @@ dummyModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode)
     return(TRUE);
 }
 
-
 Atom VFB_PROP  = 0;
 #define  VFB_PROP_NAME  "VFB_IDENT"
 
-
-
 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);
 	
-- 
1.6.5.2



More information about the xorg-devel mailing list