(!1705) xwin: drop wrapping on ScreenRec->PositionWindow()
Instead of complicated wrapping, just call fbPositionWindow directly. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
		
							parent
							
								
									675a766304
								
							
						
					
					
						commit
						42842897df
					
				| 
						 | 
				
			
			@ -501,7 +501,6 @@ typedef struct _winPrivScreenRec {
 | 
			
		|||
 | 
			
		||||
    /* Window Procedures for Rootless mode */
 | 
			
		||||
    CreateWindowProcPtr CreateWindow;
 | 
			
		||||
    PositionWindowProcPtr PositionWindow;
 | 
			
		||||
    ChangeWindowAttributesProcPtr ChangeWindowAttributes;
 | 
			
		||||
    RealizeWindowProcPtr RealizeWindow;
 | 
			
		||||
    UnrealizeWindowProcPtr UnrealizeWindow;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -186,9 +186,7 @@ winPositionWindowMultiWindow(WindowPtr pWin, int x, int y)
 | 
			
		|||
    winTrace("winPositionWindowMultiWindow - pWin: %p\n", pWin);
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
    WIN_UNWRAP(PositionWindow);
 | 
			
		||||
    fResult = (*pScreen->PositionWindow) (pWin, x, y);
 | 
			
		||||
    WIN_WRAP(PositionWindow, winPositionWindowMultiWindow);
 | 
			
		||||
    fbPositionWindow(pWin, x, y);
 | 
			
		||||
 | 
			
		||||
#if ENABLE_DEBUG
 | 
			
		||||
    ErrorF("winPositionWindowMultiWindow: (x, y) = (%d, %d)\n", x, y);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -380,7 +380,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
 | 
			
		|||
        WRAP(CreateWindow);
 | 
			
		||||
        WRAP(RealizeWindow);
 | 
			
		||||
        WRAP(UnrealizeWindow);
 | 
			
		||||
        WRAP(PositionWindow);
 | 
			
		||||
        WRAP(ChangeWindowAttributes);
 | 
			
		||||
        WRAP(SetShape);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -412,7 +411,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
 | 
			
		|||
        WRAP(CreateWindow);
 | 
			
		||||
        WRAP(RealizeWindow);
 | 
			
		||||
        WRAP(UnrealizeWindow);
 | 
			
		||||
        WRAP(PositionWindow);
 | 
			
		||||
        WRAP(ChangeWindowAttributes);
 | 
			
		||||
        WRAP(ReparentWindow);
 | 
			
		||||
        WRAP(RestackWindow);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -117,9 +117,7 @@ winPositionWindowRootless(WindowPtr pWin, int x, int y)
 | 
			
		|||
    winTrace("winPositionWindowRootless (%p)\n", pWin);
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
    WIN_UNWRAP(PositionWindow);
 | 
			
		||||
    fResult = (*pScreen->PositionWindow) (pWin, x, y);
 | 
			
		||||
    WIN_WRAP(PositionWindow, winPositionWindowRootless);
 | 
			
		||||
    fbPositionWindow(pWin, x, y);
 | 
			
		||||
 | 
			
		||||
    winUpdateRgnRootless(pWin);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue