(!1705) xwin: drop wrapping on ScreenRec->MoveWindow()
Instead of complicated wrapping, just call fbMoveWindow() directly. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
		
							parent
							
								
									eb55549376
								
							
						
					
					
						commit
						8fd847c2f5
					
				| 
						 | 
				
			
			@ -504,7 +504,6 @@ typedef struct _winPrivScreenRec {
 | 
			
		|||
    ClearToBackgroundProcPtr ClearToBackground;
 | 
			
		||||
    ClipNotifyProcPtr ClipNotify;
 | 
			
		||||
    ResizeWindowProcPtr ResizeWindow;
 | 
			
		||||
    MoveWindowProcPtr MoveWindow;
 | 
			
		||||
    ModifyPixmapHeaderProcPtr ModifyPixmapHeader;
 | 
			
		||||
 | 
			
		||||
    winCursorRec cursor;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -36,6 +36,8 @@
 | 
			
		|||
#include <xwin-config.h>
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "mi/mi_priv.h"
 | 
			
		||||
 | 
			
		||||
#include "win.h"
 | 
			
		||||
#include "winmultiwindowclass.h"
 | 
			
		||||
#include "winmultiwindowicons.h"
 | 
			
		||||
| 
						 | 
				
			
			@ -752,17 +754,11 @@ void
 | 
			
		|||
winMoveWindowMultiWindow(WindowPtr pWin, int x, int y,
 | 
			
		||||
                         WindowPtr pSib, VTKind kind)
 | 
			
		||||
{
 | 
			
		||||
    ScreenPtr pScreen = pWin->drawable.pScreen;
 | 
			
		||||
 | 
			
		||||
    winScreenPriv(pScreen);
 | 
			
		||||
 | 
			
		||||
#if ENABLE_DEBUG
 | 
			
		||||
    ErrorF("MoveWindowMultiWindow to (%d, %d)\n", x, y);
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
    WIN_UNWRAP(MoveWindow);
 | 
			
		||||
    (*pScreen->MoveWindow) (pWin, x, y, pSib, kind);
 | 
			
		||||
    WIN_WRAP(MoveWindow, winMoveWindowMultiWindow);
 | 
			
		||||
    miMoveWindow(pWin, x, y, pSib, kind);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -403,7 +403,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
 | 
			
		|||
 | 
			
		||||
        /* Save a pointer to each lower-level window procedure */
 | 
			
		||||
        WRAP(ResizeWindow);
 | 
			
		||||
        WRAP(MoveWindow);
 | 
			
		||||
        WRAP(ModifyPixmapHeader);
 | 
			
		||||
 | 
			
		||||
        /* Assign multi-window window procedures to be top level procedures */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue