summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXSubwindows.c
diff options
context:
space:
mode:
authorculler <culler>2018-12-17 16:44:02 (GMT)
committerculler <culler>2018-12-17 16:44:02 (GMT)
commite23f0234acc76259cea840a7b8c23b2a58bacd97 (patch)
treecc7cca6b12802928bdb7e74a1c21621587b0af90 /macosx/tkMacOSXSubwindows.c
parent394280cc3f6bb4b807560ad4bd02688dc2c43d48 (diff)
downloadtk-e23f0234acc76259cea840a7b8c23b2a58bacd97.zip
tk-e23f0234acc76259cea840a7b8c23b2a58bacd97.tar.gz
tk-e23f0234acc76259cea840a7b8c23b2a58bacd97.tar.bz2
Fix a bug with window ordering in Aqua. Deal with remaining unixWm tests.
Diffstat (limited to 'macosx/tkMacOSXSubwindows.c')
-rw-r--r--macosx/tkMacOSXSubwindows.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/macosx/tkMacOSXSubwindows.c b/macosx/tkMacOSXSubwindows.c
index 0f9214f..7bc807a 100644
--- a/macosx/tkMacOSXSubwindows.c
+++ b/macosx/tkMacOSXSubwindows.c
@@ -157,11 +157,15 @@ XMapWindow(
* the app to activate too early can make the menu bar
* unresponsive.
*/
+ TkMacOSXApplyWindowAttributes(macWin->winPtr, win);
+ [win setExcludedFromWindowsMenu:NO];
[NSApp activateIgnoringOtherApps:NO];
+ [[win contentView] setNeedsDisplay:YES];
if ( [win canBecomeKeyWindow] ) {
[win makeKeyAndOrderFront:NSApp];
+ } else {
+ [win orderFrontRegardless];
}
- TkMacOSXApplyWindowAttributes(macWin->winPtr, win);
} else {
/*
* Rebuild the container's clipping region and display