diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-05-02 11:39:29 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-05-02 11:39:29 (GMT) |
commit | aa8efe88661be2b380149cb1e1d7c0e9313c4130 (patch) | |
tree | c12fa65a444645b8f89feba3bddeef8e4b31542b /generic/tkFocus.c | |
parent | e9140811cd74d9b4da77039deb20dfca25fd798c (diff) | |
parent | f6ce17f323f35d5c06e37723848cbd7fa8f2f6fa (diff) | |
download | tk-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.c | 8 |
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; |