summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXWindowEvent.c
diff options
context:
space:
mode:
authormarc_culler <marc.culler@gmail.com>2020-09-27 19:14:42 (GMT)
committermarc_culler <marc.culler@gmail.com>2020-09-27 19:14:42 (GMT)
commit9a2585491c7164eb5d4de469786d3c935ab3dcf0 (patch)
tree9ab8d246a62adf2f02f673fe9f2f881af1bcec02 /macosx/tkMacOSXWindowEvent.c
parent09cadff7abbce69fb5d07b88b20f6461a05a0541 (diff)
downloadtk-9a2585491c7164eb5d4de469786d3c935ab3dcf0.zip
tk-9a2585491c7164eb5d4de469786d3c935ab3dcf0.tar.gz
tk-9a2585491c7164eb5d4de469786d3c935ab3dcf0.tar.bz2
Cherrypick the fixes for macOS MapNotify and UnmapNotify from mac_styles
Diffstat (limited to 'macosx/tkMacOSXWindowEvent.c')
-rw-r--r--macosx/tkMacOSXWindowEvent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c
index fcbd134..5a2809c 100644
--- a/macosx/tkMacOSXWindowEvent.c
+++ b/macosx/tkMacOSXWindowEvent.c
@@ -1086,7 +1086,7 @@ ConfigureRestrictProc(
}
/*
- * In macOS 10.14 and later his method is called when a user changes between
+ * In macOS 10.14 and later this method is called when a user changes between
* light and dark mode or changes the accent color. The implementation
* generates two virtual events. The first is either <<LightAqua>> or
* <<DarkAqua>>, depending on the view's current effective appearance. The
@@ -1134,6 +1134,7 @@ static const char *const accentNames[] = {
}
if (!defaultColor) {
defaultColor = [NSApp macOSVersion] < 110000 ? "Blue" : "Multicolor";
+ preferences = [[NSUserDefaults standardUserDefaults] retain];
/*
* AppKit calls this method when the user changes the Accent Color