summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjenglish@flightlab.com <jenglish>2012-07-23 23:12:05 (GMT)
committerjenglish@flightlab.com <jenglish>2012-07-23 23:12:05 (GMT)
commit92b2ce3921794c22bbdcffbb53ba1d0c1e19b199 (patch)
tree69d870ad292b6b0ea514886aaeefbff76c7110d6 /unix
parent5810d3e70536693baea8883a17a250f1172058cf (diff)
parent36acf3cb9145b3e88a43115b09a7f34dc9e1d11b (diff)
downloadtk-92b2ce3921794c22bbdcffbb53ba1d0c1e19b199.zip
tk-92b2ce3921794c22bbdcffbb53ba1d0c1e19b199.tar.gz
tk-92b2ce3921794c22bbdcffbb53ba1d0c1e19b199.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 be53ec6..37b1737 100644
--- a/unix/tkUnixSend.c
+++ b/unix/tkUnixSend.c
@@ -1349,11 +1349,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(dispPtr->commTkwin);
atts.override_redirect = True;
Tk_ChangeWindowAttributes(dispPtr->commTkwin,