summaryrefslogtreecommitdiffstats
path: root/library/tk.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-06-10 14:57:13 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-06-10 14:57:13 (GMT)
commit9ee99799480d660aca2908135f7dc6fd5cb6dbd5 (patch)
treefe09d282023ed498d42ae5a265d2031085f8fd6f /library/tk.tcl
parent19d4434ebc6037f82f9855e75eca61fb12ea021c (diff)
parent6a2cb75b188aad9e6ecf9906ab5d1491647fbd09 (diff)
downloadtk-9ee99799480d660aca2908135f7dc6fd5cb6dbd5.zip
tk-9ee99799480d660aca2908135f7dc6fd5cb6dbd5.tar.gz
tk-9ee99799480d660aca2908135f7dc6fd5cb6dbd5.tar.bz2
[Bug 3534137]: $tcl_platform(platform) != [tk windowingsystem]
Diffstat (limited to 'library/tk.tcl')
-rw-r--r--library/tk.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/tk.tcl b/library/tk.tcl
index b43b56a..e583967 100644
--- a/library/tk.tcl
+++ b/library/tk.tcl
@@ -205,7 +205,7 @@ proc ::tk::RestoreFocusGrab {grab focus {destroy destroy}} {
# Results:
# Returns the selection, or an error if none could be found
#
-if {$tcl_platform(platform) eq "unix"} {
+if {[tk windowingsystem] ne "win32"} {
proc ::tk::GetSelection {w {sel PRIMARY}} {
if {[catch {selection get -displayof $w -selection $sel \
-type UTF8_STRING} txt] \