summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorculler <culler>2018-12-19 23:19:55 (GMT)
committerculler <culler>2018-12-19 23:19:55 (GMT)
commitf0ba2d7b3ec3c978c9433acfb4766978cbef6175 (patch)
tree199cbfffe1aa2d37edacd15fb1ffb0572a05a877 /unix
parentc63fbe22e95aceda8f7700065ac05a98855d1730 (diff)
downloadtk-f0ba2d7b3ec3c978c9433acfb4766978cbef6175.zip
tk-f0ba2d7b3ec3c978c9433acfb4766978cbef6175.tar.gz
tk-f0ba2d7b3ec3c978c9433acfb4766978cbef6175.tar.bz2
Add a comment.
Diffstat (limited to 'unix')
-rw-r--r--unix/tkUnixWm.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/unix/tkUnixWm.c b/unix/tkUnixWm.c
index fa54f56..8944ecc 100644
--- a/unix/tkUnixWm.c
+++ b/unix/tkUnixWm.c
@@ -5787,7 +5787,7 @@ Tk_GetRootCoords(
static int PointInWindow(
int x,
- int y,
+ int y,
WmInfo *wmPtr)
{
XWindowChanges changes = wmPtr->winPtr->changes;
@@ -5887,6 +5887,12 @@ Tk_CoordsToWindow(
goto gotToplevel;
} else if (wmPtr->winPtr->flags & TK_EMBEDDED &&
TkpGetOtherWindow(wmPtr->winPtr) == NULL) {
+
+ /*
+ * This toplevel is embedded in a window belonging to
+ * a different application.
+ */
+
int rx, ry;
Tk_GetRootCoords((Tk_Window) wmPtr->winPtr, &rx, &ry);
childX -= rx;