summaryrefslogtreecommitdiffstats
path: root/generic/tkFocus.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-05-02 11:22:27 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-05-02 11:22:27 (GMT)
commitf6ce17f323f35d5c06e37723848cbd7fa8f2f6fa (patch)
treeddcb2fa3b4aa7f590b0b475a91d7453e13edba97 /generic/tkFocus.c
parent92dc17bde5685c5249794b0ef519d9597139c5f4 (diff)
parent1ad8b81988aa95d3ae080faa924677e7c9d56c1f (diff)
downloadtk-f6ce17f323f35d5c06e37723848cbd7fa8f2f6fa.zip
tk-f6ce17f323f35d5c06e37723848cbd7fa8f2f6fa.tar.gz
tk-f6ce17f323f35d5c06e37723848cbd7fa8f2f6fa.tar.bz2
[Bug 533519]: Window placement with multiple screens
Diffstat (limited to 'generic/tkFocus.c')
-rw-r--r--generic/tkFocus.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/generic/tkFocus.c b/generic/tkFocus.c
index aad1305..93e1617 100644
--- a/generic/tkFocus.c
+++ b/generic/tkFocus.c
@@ -737,7 +737,7 @@ TkFocusKeyEvent(winPtr, eventPtr)
{
DisplayFocusInfo *displayFocusPtr;
TkWindow *focusWinPtr;
- int focusX, focusY, vRootX, vRootY, vRootWidth, vRootHeight;
+ int focusX, focusY;
displayFocusPtr = FindDisplayFocusInfo(winPtr->mainPtr, winPtr->dispPtr);
focusWinPtr = displayFocusPtr->focusWinPtr;
@@ -770,11 +770,9 @@ TkFocusKeyEvent(winPtr, eventPtr)
eventPtr->xkey.x = -1;
eventPtr->xkey.y = -1;
} else {
- Tk_GetVRootGeometry((Tk_Window) focusWinPtr, &vRootX, &vRootY,
- &vRootWidth, &vRootHeight);
Tk_GetRootCoords((Tk_Window) focusWinPtr, &focusX, &focusY);
- eventPtr->xkey.x = eventPtr->xkey.x_root - vRootX - focusX;
- eventPtr->xkey.y = eventPtr->xkey.y_root - vRootY - focusY;
+ eventPtr->xkey.x = eventPtr->xkey.x_root - focusX;
+ eventPtr->xkey.y = eventPtr->xkey.y_root - focusY;
}
eventPtr->xkey.window = focusWinPtr->window;
return focusWinPtr;