summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjenglish <jenglish@flightlab.com>2012-07-31 05:07:14 (GMT)
committerjenglish <jenglish@flightlab.com>2012-07-31 05:07:14 (GMT)
commit58aaed38ed048aeeafd044d607cb97b79039cd8f (patch)
tree741ff99bcb5b70b799187e6c866e47a7b810773d /unix
parent314639c09d207b2fcb8cf5429da94e238c09fb66 (diff)
downloadtk-58aaed38ed048aeeafd044d607cb97b79039cd8f.zip
tk-58aaed38ed048aeeafd044d607cb97b79039cd8f.tar.gz
tk-58aaed38ed048aeeafd044d607cb97b79039cd8f.tar.bz2
Backport fix for [Bug 3546073]
Diffstat (limited to 'unix')
-rw-r--r--unix/tkUnixSend.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/unix/tkUnixSend.c b/unix/tkUnixSend.c
index 2b54506..f6ad7b5 100644
--- a/unix/tkUnixSend.c
+++ b/unix/tkUnixSend.c
@@ -1314,11 +1314,9 @@ SendInit(interp, dispPtr)
* event handler for it.
*/
- dispPtr->commTkwin = Tk_CreateWindow(interp, (Tk_Window) NULL,
- "_comm", DisplayString(dispPtr->display));
- if (dispPtr->commTkwin == NULL) {
- panic("Tk_CreateWindow failed in SendInit!");
- }
+ dispPtr->commTkwin = (Tk_Window) TkAllocWindow(dispPtr,
+ DefaultScreen(dispPtr->display), NULL);
+
Tcl_Preserve((ClientData) dispPtr->commTkwin);
atts.override_redirect = True;
Tk_ChangeWindowAttributes(dispPtr->commTkwin,