diff options
author | culler <culler> | 2018-12-19 23:19:55 (GMT) |
---|---|---|
committer | culler <culler> | 2018-12-19 23:19:55 (GMT) |
commit | f0ba2d7b3ec3c978c9433acfb4766978cbef6175 (patch) | |
tree | 199cbfffe1aa2d37edacd15fb1ffb0572a05a877 /unix | |
parent | c63fbe22e95aceda8f7700065ac05a98855d1730 (diff) | |
download | tk-f0ba2d7b3ec3c978c9433acfb4766978cbef6175.zip tk-f0ba2d7b3ec3c978c9433acfb4766978cbef6175.tar.gz tk-f0ba2d7b3ec3c978c9433acfb4766978cbef6175.tar.bz2 |
Add a comment.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tkUnixWm.c | 8 |
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; |