summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2012-08-25 01:54:40 (GMT)
committerdgp <dgp@users.sourceforge.net>2012-08-25 01:54:40 (GMT)
commitb4ef8aeb378ece8ed9e81bec86fbba29558bbdc7 (patch)
treecd8890c1f54e58f13d18009bc67da0ae2e67560d
parent63131158ec6f20712214c1233541e694443b149d (diff)
parent34619c3877d67d2c96785efe775096802ef77937 (diff)
downloadtk-b4ef8aeb378ece8ed9e81bec86fbba29558bbdc7.zip
tk-b4ef8aeb378ece8ed9e81bec86fbba29558bbdc7.tar.gz
tk-b4ef8aeb378ece8ed9e81bec86fbba29558bbdc7.tar.bz2
3554026 3561016 Better fix from Emiliano Gavilan
-rw-r--r--unix/tkUnixWm.c4
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,