summaryrefslogtreecommitdiffstats
path: root/win/tkWinWm.c
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2012-04-21 08:06:59 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2012-04-21 08:06:59 (GMT)
commit15c53484980d90308491787afbdfdccf856a4ad9 (patch)
tree90a40fd039da5472d189be8b8b34c440f4de0dff /win/tkWinWm.c
parent271e9dcf526c4ae777569cd4a6bf2f465632586a (diff)
parentc4e011dc3647d4da4ba4b63b27f2b5b0d905eaa7 (diff)
downloadtk-15c53484980d90308491787afbdfdccf856a4ad9.zip
tk-15c53484980d90308491787afbdfdccf856a4ad9.tar.gz
tk-15c53484980d90308491787afbdfdccf856a4ad9.tar.bz2
same bugfix, but now applied to trunk
Diffstat (limited to 'win/tkWinWm.c')
-rw-r--r--win/tkWinWm.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index e4c9c34..2aa251c 100644
--- a/win/tkWinWm.c
+++ b/win/tkWinWm.c
@@ -6401,20 +6401,10 @@ Tk_GetVRootGeometry(
int *widthPtr, int *heightPtr)
/* Store dimensions of virtual root here. */
{
- TkWindow *winPtr = (TkWindow *) tkwin;
-
- /*
- * XXX: This is not correct for multiple monitors. There may be many
- * changes required to get this right, and it may effect existing
- * applications that don't consider possible <0 vroot. See
- * http://msdn.microsoft.com/library/en-us/gdi/monitor_3lrn.asp for more
- * info.
- */
-
- *xPtr = 0;
- *yPtr = 0;
- *widthPtr = DisplayWidth(winPtr->display, winPtr->screenNum);
- *heightPtr = DisplayHeight(winPtr->display, winPtr->screenNum);
+ *xPtr = GetSystemMetrics(SM_XVIRTUALSCREEN);
+ *yPtr = GetSystemMetrics(SM_YVIRTUALSCREEN);
+ *widthPtr = GetSystemMetrics(SM_CXVIRTUALSCREEN);
+ *heightPtr = GetSystemMetrics(SM_CYVIRTUALSCREEN);
}
/*