(!1705) xwin: drop wrapping on ScreenRec->DestroyWindow()
Instead of complicated wrapping, just call fbDestroyWindow directly. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
		
							parent
							
								
									e5f89d0f14
								
							
						
					
					
						commit
						0f723a691b
					
				|  | @ -501,7 +501,6 @@ typedef struct _winPrivScreenRec { | |||
| 
 | ||||
|     /* Window Procedures for Rootless mode */ | ||||
|     CreateWindowProcPtr CreateWindow; | ||||
|     DestroyWindowProcPtr DestroyWindow; | ||||
|     PositionWindowProcPtr PositionWindow; | ||||
|     ChangeWindowAttributesProcPtr ChangeWindowAttributes; | ||||
|     RealizeWindowProcPtr RealizeWindow; | ||||
|  |  | |||
|  | @ -142,9 +142,7 @@ winDestroyWindowMultiWindow(WindowPtr pWin) | |||
|     ErrorF("winDestroyWindowMultiWindow - pWin: %p\n", pWin); | ||||
| #endif | ||||
| 
 | ||||
|     WIN_UNWRAP(DestroyWindow); | ||||
|     fResult = (*pScreen->DestroyWindow) (pWin); | ||||
|     WIN_WRAP(DestroyWindow, winDestroyWindowMultiWindow); | ||||
|     fbDestroyWindow(pWin); | ||||
| 
 | ||||
|     /* Flag that the window has been destroyed */ | ||||
|     pWinPriv->fXKilled = TRUE; | ||||
|  |  | |||
|  | @ -378,7 +378,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv) | |||
| 
 | ||||
|         /* Save a pointer to each lower-level window procedure */ | ||||
|         WRAP(CreateWindow); | ||||
|         WRAP(DestroyWindow); | ||||
|         WRAP(RealizeWindow); | ||||
|         WRAP(UnrealizeWindow); | ||||
|         WRAP(PositionWindow); | ||||
|  | @ -411,7 +410,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv) | |||
| 
 | ||||
|         /* Save a pointer to each lower-level window procedure */ | ||||
|         WRAP(CreateWindow); | ||||
|         WRAP(DestroyWindow); | ||||
|         WRAP(RealizeWindow); | ||||
|         WRAP(UnrealizeWindow); | ||||
|         WRAP(PositionWindow); | ||||
|  |  | |||
|  | @ -90,9 +90,7 @@ winDestroyWindowRootless(WindowPtr pWin) | |||
|     winTrace("winDestroyWindowRootless (%p)\n", pWin); | ||||
| #endif | ||||
| 
 | ||||
|     WIN_UNWRAP(DestroyWindow); | ||||
|     fResult = (*pScreen->DestroyWindow) (pWin); | ||||
|     WIN_WRAP(DestroyWindow, winDestroyWindowRootless); | ||||
|     fbDestroyWindow(pWin); | ||||
| 
 | ||||
|     if (pWinPriv->hRgn != NULL) { | ||||
|         DeleteObject(pWinPriv->hRgn); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue