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 | 3e5743d9564edd8964e15e3b8c72f05eb6427fce (patch) | |
tree | cd8890c1f54e58f13d18009bc67da0ae2e67560d /unix/tkUnixWm.c | |
parent | 82e26f463deb05bdcf10ead831e1a35030a2f586 (diff) | |
parent | 068850eef4688ee93422b7debf84824502fb91e0 (diff) | |
download | tk-3e5743d9564edd8964e15e3b8c72f05eb6427fce.zip tk-3e5743d9564edd8964e15e3b8c72f05eb6427fce.tar.gz tk-3e5743d9564edd8964e15e3b8c72f05eb6427fce.tar.bz2 |
3554026 3561016 Better fix from Emiliano Gavilan
Diffstat (limited to 'unix/tkUnixWm.c')
-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, |