summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2012-09-17 13:12:54 (GMT)
committerdgp <dgp@users.sourceforge.net>2012-09-17 13:12:54 (GMT)
commit4cbb37bc3338750041662ad1d3ef5a9a5f6016b7 (patch)
tree7850e390c8761a9ca92947bebadf1054505229f0 /generic
parenta8512fc0800ca93149c86ad526313794ea16be36 (diff)
parenta7ed3710535ad02489545afd8bd9bb587b7cfdd8 (diff)
downloadtk-4cbb37bc3338750041662ad1d3ef5a9a5f6016b7.zip
tk-4cbb37bc3338750041662ad1d3ef5a9a5f6016b7.tar.gz
tk-4cbb37bc3338750041662ad1d3ef5a9a5f6016b7.tar.bz2
merge trunk
Diffstat (limited to 'generic')
-rw-r--r--generic/tkClipboard.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tkClipboard.c b/generic/tkClipboard.c
index 604fa98..b902625 100644
--- a/generic/tkClipboard.c
+++ b/generic/tkClipboard.c
@@ -652,6 +652,9 @@ TkClipInit(
dispPtr->clipWindow = (Tk_Window) TkAllocWindow(dispPtr,
DefaultScreen(dispPtr->display), NULL);
Tcl_Preserve(dispPtr->clipWindow);
+ ((TkWindow *) dispPtr->clipWindow)->flags |=
+ TK_TOP_HIERARCHY|TK_TOP_LEVEL|TK_HAS_WRAPPER|TK_WIN_MANAGED;
+ TkWmNewWindow((TkWindow *) dispPtr->clipWindow);
atts.override_redirect = True;
Tk_ChangeWindowAttributes(dispPtr->clipWindow, CWOverrideRedirect, &atts);
Tk_MakeWindowExist(dispPtr->clipWindow);