summaryrefslogtreecommitdiffstats
path: root/generic/tkFocus.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-05-02 11:39:29 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-05-02 11:39:29 (GMT)
commitaa8efe88661be2b380149cb1e1d7c0e9313c4130 (patch)
treec12fa65a444645b8f89feba3bddeef8e4b31542b /generic/tkFocus.c
parente9140811cd74d9b4da77039deb20dfca25fd798c (diff)
parentf6ce17f323f35d5c06e37723848cbd7fa8f2f6fa (diff)
downloadtk-aa8efe88661be2b380149cb1e1d7c0e9313c4130.zip
tk-aa8efe88661be2b380149cb1e1d7c0e9313c4130.tar.gz
tk-aa8efe88661be2b380149cb1e1d7c0e9313c4130.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 42d8be3..4814c17 100644
--- a/generic/tkFocus.c
+++ b/generic/tkFocus.c
@@ -725,7 +725,7 @@ TkFocusKeyEvent(
{
DisplayFocusInfo *displayFocusPtr;
TkWindow *focusWinPtr;
- int focusX, focusY, vRootX, vRootY, vRootWidth, vRootHeight;
+ int focusX, focusY;
displayFocusPtr = FindDisplayFocusInfo(winPtr->mainPtr, winPtr->dispPtr);
focusWinPtr = displayFocusPtr->focusWinPtr;
@@ -758,11 +758,9 @@ TkFocusKeyEvent(
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;