summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorculler <culler>2024-06-26 05:07:38 (GMT)
committerculler <culler>2024-06-26 05:07:38 (GMT)
commit81291da33b1e6f1cab8020cb72dd43a974a0a20e (patch)
treea966a5cfd95f5963ca362598bfb2b779b9c09852
parentf7a502702be5e43b4215f77dcf710b166537193a (diff)
downloadtk-81291da33b1e6f1cab8020cb72dd43a974a0a20e.zip
tk-81291da33b1e6f1cab8020cb72dd43a974a0a20e.tar.gz
tk-81291da33b1e6f1cab8020cb72dd43a974a0a20e.tar.bz2
replace accidentally deleted line; move the root window our of the way of raise tests.
-rw-r--r--macosx/tkMacOSXSubwindows.c2
-rw-r--r--tests/raise.test1
2 files changed, 3 insertions, 0 deletions
diff --git a/macosx/tkMacOSXSubwindows.c b/macosx/tkMacOSXSubwindows.c
index 771497c..5a253e7 100644
--- a/macosx/tkMacOSXSubwindows.c
+++ b/macosx/tkMacOSXSubwindows.c
@@ -190,6 +190,8 @@ XMapWindow(
if (initialized) {
if ([win canBecomeKeyWindow]) {
[win makeKeyAndOrderFront:NSApp];
+ } else {
+ [win orderFrontRegardless];
}
/*
diff --git a/tests/raise.test b/tests/raise.test
index 2e9e2c6..7e6b0bd 100644
--- a/tests/raise.test
+++ b/tests/raise.test
@@ -16,6 +16,7 @@ namespace import -force tcltest::test
# Procedure to create a bunch of overlapping windows, which should
# make it easy to detect differences in order.
+wm geometry . +400+400
proc raise_setup {} {
destroy {*}[winfo children .raise]
update idletasks