diff options
author | culler <culler> | 2018-12-12 15:50:35 (GMT) |
---|---|---|
committer | culler <culler> | 2018-12-12 15:50:35 (GMT) |
commit | d096455a67f38de40df05686c2a7a6611f255730 (patch) | |
tree | 979bd375141314dd1738b98960035f2cab6ee5ad /unix/tkUnixWm.c | |
parent | 49d7bce77f6087d0abe19715ce2c5d39359e2313 (diff) | |
download | tk-d096455a67f38de40df05686c2a7a6611f255730.zip tk-d096455a67f38de40df05686c2a7a6611f255730.tar.gz tk-d096455a67f38de40df05686c2a7a6611f255730.tar.bz2 |
Fix the containment test, check for iconified windows, adjust some tests.
Diffstat (limited to 'unix/tkUnixWm.c')
-rw-r--r-- | unix/tkUnixWm.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/unix/tkUnixWm.c b/unix/tkUnixWm.c index e8d420a..4ba3124 100644 --- a/unix/tkUnixWm.c +++ b/unix/tkUnixWm.c @@ -5866,9 +5866,9 @@ Tk_CoordsToWindow( continue; } if (x < winPtr->changes.x || - x > winPtr->changes.x + winPtr->changes.width || + x >= winPtr->changes.x + winPtr->changes.width || y < winPtr->changes.y || - y > winPtr->changes.y + winPtr->changes.height) { + y >= winPtr->changes.y + winPtr->changes.height) { /* * The point is completely outside the window; keep searching. @@ -5876,6 +5876,15 @@ Tk_CoordsToWindow( continue; } + if (wmPtr->hints.initial_state != NormalState) { + + /* + * Ignore iconified windows. + */ + + continue; + } + goto gotToplevel; } x = childX; |