xwin: drop wrapping on ScreenRec->RestackWindow()
This proc vector is optional (callers check for non-null) and neither fb nor mi set it, so we can just assign our function directly. No need for wrapping. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
		
							parent
							
								
									a698ebe1f8
								
							
						
					
					
						commit
						0356a26d9f
					
				| 
						 | 
				
			
			@ -503,7 +503,6 @@ typedef struct _winPrivScreenRec {
 | 
			
		|||
    PostValidateTreeProcPtr PostValidateTree;
 | 
			
		||||
    ClearToBackgroundProcPtr ClearToBackground;
 | 
			
		||||
    ClipNotifyProcPtr ClipNotify;
 | 
			
		||||
    RestackWindowProcPtr RestackWindow;
 | 
			
		||||
    ResizeWindowProcPtr ResizeWindow;
 | 
			
		||||
    MoveWindowProcPtr MoveWindow;
 | 
			
		||||
    ModifyPixmapHeaderProcPtr ModifyPixmapHeader;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -361,19 +361,11 @@ winRestackWindowMultiWindow(WindowPtr pWin, WindowPtr pOldNextSib)
 | 
			
		|||
    HWND hInsertAfter;
 | 
			
		||||
    HWND hWnd = NULL;
 | 
			
		||||
#endif
 | 
			
		||||
    ScreenPtr pScreen = pWin->drawable.pScreen;
 | 
			
		||||
 | 
			
		||||
    winScreenPriv(pScreen);
 | 
			
		||||
 | 
			
		||||
#if ENABLE_DEBUG || ENABLE_DEBUG
 | 
			
		||||
    winTrace("winRestackMultiWindow - %p\n", pWin);
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
    WIN_UNWRAP(RestackWindow);
 | 
			
		||||
    if (pScreen->RestackWindow)
 | 
			
		||||
        (*pScreen->RestackWindow) (pWin, pOldNextSib);
 | 
			
		||||
    WIN_WRAP(RestackWindow, winRestackWindowMultiWindow);
 | 
			
		||||
 | 
			
		||||
#if 1
 | 
			
		||||
    /*
 | 
			
		||||
     * Calling winReorderWindowsMultiWindow here means our window manager
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -402,7 +402,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
        /* Save a pointer to each lower-level window procedure */
 | 
			
		||||
        WRAP(RestackWindow);
 | 
			
		||||
        WRAP(ResizeWindow);
 | 
			
		||||
        WRAP(MoveWindow);
 | 
			
		||||
        WRAP(ModifyPixmapHeader);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue