diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-05-02 11:22:27 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-05-02 11:22:27 (GMT) |
commit | f6ce17f323f35d5c06e37723848cbd7fa8f2f6fa (patch) | |
tree | ddcb2fa3b4aa7f590b0b475a91d7453e13edba97 /win/tkWinWm.c | |
parent | 92dc17bde5685c5249794b0ef519d9597139c5f4 (diff) | |
parent | 1ad8b81988aa95d3ae080faa924677e7c9d56c1f (diff) | |
download | tk-f6ce17f323f35d5c06e37723848cbd7fa8f2f6fa.zip tk-f6ce17f323f35d5c06e37723848cbd7fa8f2f6fa.tar.gz tk-f6ce17f323f35d5c06e37723848cbd7fa8f2f6fa.tar.bz2 |
[Bug 533519]: Window placement with multiple screens
Diffstat (limited to 'win/tkWinWm.c')
-rw-r--r-- | win/tkWinWm.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c index 2097938..59287c8 100644 --- a/win/tkWinWm.c +++ b/win/tkWinWm.c @@ -5994,19 +5994,10 @@ Tk_GetVRootGeometry(tkwin, xPtr, yPtr, widthPtr, heightPtr) * here. */ int *widthPtr, *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); } /* |