summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorroot <root>2012-07-23 22:53:30 (GMT)
committerroot <root>2012-07-23 22:53:30 (GMT)
commitaa2b239a91a1839e7274d0bd32df0046a2140897 (patch)
tree16da99640cc5e50fca19e6bd42e61c929a083ccb /unix
parent045dede504b2d0d288893b3ae112b50b4cf285f1 (diff)
downloadtk-aa2b239a91a1839e7274d0bd32df0046a2140897.zip
tk-aa2b239a91a1839e7274d0bd32df0046a2140897.tar.gz
tk-aa2b239a91a1839e7274d0bd32df0046a2140897.tar.bz2
Fix for [Bug 3546073]:
Replace Tk_CreateWindow(... DisplayString(dispPtr->display)) with direct call to TkAllocWindow().
Diffstat (limited to 'unix')
-rw-r--r--unix/tkUnixSend.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/unix/tkUnixSend.c b/unix/tkUnixSend.c
index c073309..493100e 100644
--- a/unix/tkUnixSend.c
+++ b/unix/tkUnixSend.c
@@ -1350,11 +1350,8 @@ SendInit(
* for it.
*/
- dispPtr->commTkwin = Tk_CreateWindow(interp, (Tk_Window) NULL,
- "_comm", DisplayString(dispPtr->display));
- if (dispPtr->commTkwin == NULL) {
- Tcl_Panic("Tk_CreateWindow failed in SendInit!");
- }
+ dispPtr->commTkwin = TkAllocWindow(dispPtr,
+ DefaultScreen(dispPtr->display), NULL);
Tcl_Preserve((ClientData) dispPtr->commTkwin);
atts.override_redirect = True;
Tk_ChangeWindowAttributes(dispPtr->commTkwin,