Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fix for ef5d3e29a4 |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | core-8-6-branch |
Files: | files | file ages | folders |
SHA3-256: |
cf3830280bca1de5d39f8fd6fcd367f8 |
User & Date: | kevin_walzer 2023-08-30 17:30:47.779 |
Context
2023-09-01
| ||
12:43 | Fix [6cc8002951]: numeric parameter errors depending on whether string vs double/int rep check-in: 76de1e42 user: jan.nijtmans tags: core-8-6-branch | |
11:11 | Proposed fix for [6cc8002951]: numeric parameter errors depending on whether string vs double/int rep. Please review check-in: 163a88ee user: jan.nijtmans tags: bug-6cc8002951 | |
2023-08-31
| ||
14:54 | Merge 8.6 check-in: d553acf4 user: jan.nijtmans tags: trunk, main | |
2023-08-30
| ||
17:30 | Fix for ef5d3e29a4 check-in: cf383028 user: kevin_walzer tags: core-8-6-branch | |
2023-08-29
| ||
19:25 | Fix [e42eef33ee]: valgrind complains at wish startup (input methods). Patch from John Goodward. check-in: 443e8bfd user: fvogel tags: core-8-6-branch | |
Changes
Changes to macosx/tkMacOSXWindowEvent.c.
︙ | ︙ | |||
235 236 237 238 239 240 241 | - (void) windowBecameVisible: (NSNotification *) notification { NSWindow *window = [notification object]; TkWindow *winPtr = TkMacOSXGetTkWindow(window); if (winPtr) { TKContentView *view = [window contentView]; | | | | 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 | - (void) windowBecameVisible: (NSNotification *) notification { NSWindow *window = [notification object]; TkWindow *winPtr = TkMacOSXGetTkWindow(window); if (winPtr) { TKContentView *view = [window contentView]; #if MAC_OS_X_VERSION_MAX_ALLOWED >= 101400 if (@available(macOS 10.14, *)) { [view viewDidChangeEffectiveAppearance]; } #endif [view addTkDirtyRect:[view bounds]]; Tcl_CancelIdleCall(TkMacOSXDrawAllViews, NULL); Tcl_DoWhenIdle(TkMacOSXDrawAllViews, NULL); } |
︙ | ︙ | |||
1233 1234 1235 1236 1237 1238 1239 | static const char *defaultColor = NULL; if (effectiveAppearanceName == NSAppearanceNameAqua) { TkSendVirtualEvent(tkwin, "LightAqua", NULL); } else if (effectiveAppearanceName == NSAppearanceNameDarkAqua) { TkSendVirtualEvent(tkwin, "DarkAqua", NULL); } | < < < < < < < < < < < < < < < < < < < < < | 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 | static const char *defaultColor = NULL; if (effectiveAppearanceName == NSAppearanceNameAqua) { TkSendVirtualEvent(tkwin, "LightAqua", NULL); } else if (effectiveAppearanceName == NSAppearanceNameDarkAqua) { TkSendVirtualEvent(tkwin, "DarkAqua", NULL); } if (!defaultColor) { defaultColor = [NSApp macOSVersion] < 110000 ? "Blue" : "Multicolor"; } NSString *accent = [preferences stringForKey:@"AppleAccentColor"]; NSArray *words = [[preferences stringForKey:@"AppleHighlightColor"] componentsSeparatedByString: @" "]; NSString *highlight = [words count] > 3 ? [words objectAtIndex:3] : nil; const char *accentName = accent ? accentNames[1 + accent.intValue] : defaultColor; const char *highlightName = highlight ? highlight.UTF8String: defaultColor; |
︙ | ︙ |
Changes to macosx/tkMacOSXWm.c.
︙ | ︙ | |||
1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 | */ if (deadNSWindow == [NSApp keyWindow]) { [NSApp _setKeyWindow:nil]; [NSApp _setMainWindow:nil]; } [deadNSWindow close]; [deadNSWindow release]; #if DEBUG_ZOMBIES > 1 fprintf(stderr, "================= Pool dump ===================\n"); [NSAutoreleasePool showPools]; #endif | > > > > > | 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 | */ if (deadNSWindow == [NSApp keyWindow]) { [NSApp _setKeyWindow:nil]; [NSApp _setMainWindow:nil]; } [deadNSWindow close]; #if MAC_OS_X_VERSION_MAX_ALLOWED >= 101400 NSUserDefaults *preferences = [NSUserDefaults standardUserDefaults]; [preferences removeObserver:deadNSWindow.contentView forKeyPath:@"AppleHighlightColor"]; #endif [deadNSWindow release]; #if DEBUG_ZOMBIES > 1 fprintf(stderr, "================= Pool dump ===================\n"); [NSAutoreleasePool showPools]; #endif |
︙ | ︙ | |||
6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 | TKWindow *window = [[winClass alloc] initWithContentRect:contentRect styleMask:styleMask backing:NSBackingStoreBuffered defer:YES]; if (!window) { Tcl_Panic("couldn't allocate new Mac window"); } TKContentView *contentView = [[TKContentView alloc] initWithFrame:NSZeroRect]; [window setContentView:contentView]; [contentView release]; [window setDelegate:NSApp]; [window setAcceptsMouseMovedEvents:NO]; [window setReleasedWhenClosed:NO]; if (styleMask & NSUtilityWindowMask) { [(TKPanel*)window setFloatingPanel:YES]; | > > > > > > > > > > > > > > > | 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 | TKWindow *window = [[winClass alloc] initWithContentRect:contentRect styleMask:styleMask backing:NSBackingStoreBuffered defer:YES]; if (!window) { Tcl_Panic("couldn't allocate new Mac window"); } TKContentView *contentView = [[TKContentView alloc] initWithFrame:NSZeroRect]; #if MAC_OS_X_VERSION_MAX_ALLOWED >= 101400 NSUserDefaults *preferences = [NSUserDefaults standardUserDefaults]; /* * AppKit calls the viewDidChangeEffectiveAppearance method when the * user changes the Accent Color but not when the user changes the * Highlight Color. So we register to receive KVO notifications for * Highlight Color as well. */ [preferences addObserver:contentView forKeyPath:@"AppleHighlightColor" options:NSKeyValueObservingOptionNew context:NULL]; #endif [window setContentView:contentView]; [contentView release]; [window setDelegate:NSApp]; [window setAcceptsMouseMovedEvents:NO]; [window setReleasedWhenClosed:NO]; if (styleMask & NSUtilityWindowMask) { [(TKPanel*)window setFloatingPanel:YES]; |
︙ | ︙ |