summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixWm.c
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2012-08-25 01:55:24 (GMT)
committerdgp <dgp@noemail.net>2012-08-25 01:55:24 (GMT)
commit56bc915bbd0c1015ebba7bad579b60cb89340c93 (patch)
tree81b84b282cc0086773306219fe893a94fa96b9e8 /unix/tkUnixWm.c
parent485f6ff7671f993f918fbabd163227f73dde3845 (diff)
parent694330fc240836053c9cf323e5bc3d9c414598f0 (diff)
downloadtk-56bc915bbd0c1015ebba7bad579b60cb89340c93.zip
tk-56bc915bbd0c1015ebba7bad579b60cb89340c93.tar.gz
tk-56bc915bbd0c1015ebba7bad579b60cb89340c93.tar.bz2
3554026 3561016 Better fix from Emiliano Gavilan.
FossilOrigin-Name: ca2a716c684c369f53ccbd187a40f9b1ae681031
Diffstat (limited to 'unix/tkUnixWm.c')
-rw-r--r--unix/tkUnixWm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tkUnixWm.c b/unix/tkUnixWm.c
index 60aaceb..99fcf73 100644
--- a/unix/tkUnixWm.c
+++ b/unix/tkUnixWm.c
@@ -6757,14 +6757,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,