diff options
author | dgp@users.sourceforge.net <dgp> | 2012-08-25 01:54:40 (GMT) |
---|---|---|
committer | dgp@users.sourceforge.net <dgp> | 2012-08-25 01:54:40 (GMT) |
commit | 66f03c8fbfd7049344ae98d9e5803f9960ce192f (patch) | |
tree | cd8890c1f54e58f13d18009bc67da0ae2e67560d /unix | |
parent | e83902c99079f25a27aed984b52c97990ad1f554 (diff) | |
parent | 9a37a6251b4da8b8fd5ce8d4137c3f0f06fbcf8e (diff) | |
download | tk-66f03c8fbfd7049344ae98d9e5803f9960ce192f.zip tk-66f03c8fbfd7049344ae98d9e5803f9960ce192f.tar.gz tk-66f03c8fbfd7049344ae98d9e5803f9960ce192f.tar.bz2 |
3554026 3561016 Better fix from Emiliano Gavilan
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tkUnixWm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tkUnixWm.c b/unix/tkUnixWm.c index c79f7cb..2626d71 100644 --- a/unix/tkUnixWm.c +++ b/unix/tkUnixWm.c @@ -6753,14 +6753,14 @@ TkSetTransientFor(Tk_Window tkwin, Tk_Window parent) if (parent == None) { parent = Tk_Parent(tkwin); while (!Tk_IsTopLevel(parent)) - parent = Tk_Parent(tkwin); + parent = Tk_Parent(parent); } /* * Prevent crash due to incomplete initialization, or other problems. * [Bugs 3554026, 3561016] */ if (((TkWindow *)parent)->wmInfoPtr->wrapperPtr == NULL) { - return; + CreateWrapper(((TkWindow *)parent)->wmInfoPtr); } XSetTransientForHint(Tk_Display(tkwin), ((TkWindow *)tkwin)->wmInfoPtr->wrapperPtr->window, |