diff options
author | marha <marha@users.sourceforge.net> | 2010-02-14 13:47:55 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-02-14 13:47:55 +0000 |
commit | 8d38172d866775594af3185ae3fbd8d750677650 (patch) | |
tree | 2514d176474cc8adf7911a57724cc681c1359b47 /xorg-server/hw/xwin/winmultiwindowwindow.c | |
parent | 26f62ef5ccd04fa3a55632d808ca6e1061cfb983 (diff) | |
download | vcxsrv-8d38172d866775594af3185ae3fbd8d750677650.tar.gz vcxsrv-8d38172d866775594af3185ae3fbd8d750677650.tar.bz2 vcxsrv-8d38172d866775594af3185ae3fbd8d750677650.zip |
Updated to xorg-server-1.7.99.901
Diffstat (limited to 'xorg-server/hw/xwin/winmultiwindowwindow.c')
-rw-r--r-- | xorg-server/hw/xwin/winmultiwindowwindow.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xorg-server/hw/xwin/winmultiwindowwindow.c b/xorg-server/hw/xwin/winmultiwindowwindow.c index 8b91296f7..87ffc6d6b 100644 --- a/xorg-server/hw/xwin/winmultiwindowwindow.c +++ b/xorg-server/hw/xwin/winmultiwindowwindow.c @@ -515,6 +515,13 @@ winCreateWindowsWindow (WindowPtr pWin) iWidth = pWin->drawable.width; iHeight = pWin->drawable.height; + /* ensure window actually ends up somewhere visible */ + if (iX > GetSystemMetrics (SM_CXVIRTUALSCREEN)) + iX = CW_USEDEFAULT; + + if (iY > GetSystemMetrics (SM_CYVIRTUALSCREEN)) + iY = CW_USEDEFAULT; + if (winMultiWindowGetTransientFor (pWin, &pDaddy)) { if (pDaddy) |