aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-09-17 12:18:47 +0000
committermarha <marha@users.sourceforge.net>2010-09-17 12:18:47 +0000
commitedb32562fa496c488f0487efc792b6a33c9ab22c (patch)
tree13d6eb8505f017d7177c755153a8be6d29c9a8f6 /xorg-server/hw
parent8070cf55975d510af4301a0e539e6857a928ccc4 (diff)
downloadvcxsrv-edb32562fa496c488f0487efc792b6a33c9ab22c.tar.gz
vcxsrv-edb32562fa496c488f0487efc792b6a33c9ab22c.tar.bz2
vcxsrv-edb32562fa496c488f0487efc792b6a33c9ab22c.zip
Solved problem of resizing opengl window when it is not the main window in multiwindow mode
Diffstat (limited to 'xorg-server/hw')
-rw-r--r--xorg-server/hw/xwin/winmultiwindowwindow.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/xorg-server/hw/xwin/winmultiwindowwindow.c b/xorg-server/hw/xwin/winmultiwindowwindow.c
index 81d368b5c..44fdd8ac3 100644
--- a/xorg-server/hw/xwin/winmultiwindowwindow.c
+++ b/xorg-server/hw/xwin/winmultiwindowwindow.c
@@ -254,10 +254,21 @@ winPositionWindowMultiWindow (WindowPtr pWin, int x, int y)
rcNew.right - rcNew.left, rcNew.bottom - rcNew.top);
/* Change the position and dimensions of the Windows window */
- MoveWindow (hWnd,
- rcNew.left, rcNew.top,
- rcNew.right - rcNew.left, rcNew.bottom - rcNew.top,
- TRUE);
+ if (pWinPriv->GlCtxWnd)
+ {
+ int iWidth=rcNew.right - rcNew.left;
+ int iHeight=rcNew.bottom - rcNew.top;
+ ScreenToClient(GetParent(hWnd), (LPPOINT)&rcNew);
+ MoveWindow (hWnd,
+ rcNew.left, rcNew.top,
+ iWidth, iHeight,
+ TRUE);
+ }
+ else
+ MoveWindow (hWnd,
+ rcNew.left, rcNew.top,
+ rcNew.right - rcNew.left, rcNew.bottom - rcNew.top,
+ TRUE);
}
else
{