From e494e24c508b34b144355cb380aac16abf2fb891 Mon Sep 17 00:00:00 2001 From: Alexander Gottwald Date: Sat, 6 Nov 2004 11:56:57 +0000 Subject: Wrap all mwextwm and internalwm code with XWIN_MULTIWINDOWEXTWM --- hw/xwin/winmultiwindowwindow.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hw/xwin/winmultiwindowwindow.c') diff --git a/hw/xwin/winmultiwindowwindow.c b/hw/xwin/winmultiwindowwindow.c index a9fff7a65..7c369a4a4 100644 --- a/hw/xwin/winmultiwindowwindow.c +++ b/hw/xwin/winmultiwindowwindow.c @@ -813,7 +813,9 @@ winMinimizeWindow (Window id) { WindowPtr pWin; winPrivWinPtr pWinPriv; +#ifdef XWIN_MULTIWINDOWEXTWM win32RootlessWindowPtr pRLWinPriv; +#endif HWND hWnd; ScreenPtr pScreen = NULL; winPrivScreenPtr pScreenPriv = NULL; @@ -829,12 +831,16 @@ winMinimizeWindow (Window id) if (pScreen) pScreenPriv = winGetScreenPriv(pScreen); if (pScreenPriv) pScreenInfo = pScreenPriv->pScreenInfo; +#ifdef XWIN_MULTIWINDOWEXTWM if (pScreenPriv && pScreenInfo->fInternalWM) { pRLWinPriv = (win32RootlessWindowPtr) RootlessFrameForWindow (pWin, FALSE); hWnd = pRLWinPriv->hWnd; } else +#else + if (pScreenPriv) +#endif { pWinPriv = winGetWindowPriv (pWin); hWnd = pWinPriv->hWnd; -- cgit v1.2.3