summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorculler <culler>2018-11-06 11:54:49 (GMT)
committerculler <culler>2018-11-06 11:54:49 (GMT)
commite29eea6eac19160aa396ad3c63147441f2215b17 (patch)
tree0d7de002fb631da5b319f350ea64270471d50f8e /macosx
parent31f82fb5b5ae52d1893a87e7a5a83c0e9eae2f58 (diff)
downloadtk-e29eea6eac19160aa396ad3c63147441f2215b17.zip
tk-e29eea6eac19160aa396ad3c63147441f2215b17.tar.gz
tk-e29eea6eac19160aa396ad3c63147441f2215b17.tar.bz2
Fix misspelled constant name in OSX < 10.12.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXConstants.h2
-rw-r--r--macosx/tkMacOSXEvent.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/macosx/tkMacOSXConstants.h b/macosx/tkMacOSXConstants.h
index dbe533c..0badf1a 100644
--- a/macosx/tkMacOSXConstants.h
+++ b/macosx/tkMacOSXConstants.h
@@ -93,7 +93,7 @@
#define NSAlphaShiftKeyMask NSEventModifierFlagCapsLock
#define NSShiftKeyMask NSEventModifierFlagShift
#define NSAnyEventMask NSEventMaskAny
-#define NSApplicationDefinedEventMask NSEventMaskApplicationDefined
+#define NSApplicationDefinedMask NSEventMaskApplicationDefined
#define NSTexturedBackgroundWindowMask NSWindowStyleMaskTexturedBackground
#define NSUtilityWindowMask NSWindowStyleMaskUtilityWindow
#define NSNonactivatingPanelMask NSWindowStyleMaskNonactivatingPanel
diff --git a/macosx/tkMacOSXEvent.c b/macosx/tkMacOSXEvent.c
index 36167cb..676344c 100644
--- a/macosx/tkMacOSXEvent.c
+++ b/macosx/tkMacOSXEvent.c
@@ -143,11 +143,11 @@ TkMacOSXFlushWindows(void)
if (TkMacOSXGetXWindow(w)) {
[w displayIfNeeded];
syncEvent = [NSApp
- nextEventMatchingMask:NSApplicationDefinedEventMask
+ nextEventMatchingMask:NSApplicationDefinedMask
untilDate:[NSDate distantPast]
inMode:GetRunLoopMode(modalSession)
dequeue:YES];
- [NSApp discardEventsMatchingMask:NSApplicationDefinedEventMask
+ [NSApp discardEventsMatchingMask:NSApplicationDefinedMask
beforeEvent:syncEvent];
}
}