aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-10-15 20:16:02 +0200
committerTeddy Wing2018-10-15 20:16:02 +0200
commit7c534c3c3d73666d24f7ba858f8ee9314ffa2707 (patch)
treedb4c2e9d60d35d90257c1d386f11d09be4364fe4
parentc089d8cc157fc4298b0e2bca0f8665f7ffe5a8c7 (diff)
downloaddome_key_event_source_simulator-7c534c3c3d73666d24f7ba858f8ee9314ffa2707.tar.bz2
Change Cocoa import to be more specific
Instead of including Cocoa as a whole, include the specific frameworks that the library depends on. `NSEvent` is in `AppKit` and `CGEvent` etc. is in `CoreGraphics`.
-rw-r--r--dome_key_event_source_simulator/dome_key_event_source_simulator.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/dome_key_event_source_simulator/dome_key_event_source_simulator.h b/dome_key_event_source_simulator/dome_key_event_source_simulator.h
index 6249a50..77c87a0 100644
--- a/dome_key_event_source_simulator/dome_key_event_source_simulator.h
+++ b/dome_key_event_source_simulator/dome_key_event_source_simulator.h
@@ -9,7 +9,8 @@
#ifndef DOME_KEY_EVENT_SOURCE_SIMULATOR_H
#define DOME_KEY_EVENT_SOURCE_SIMULATOR_H
-#import <Cocoa/Cocoa.h>
+#import <AppKit/AppKit.h>
+#import <CoreGraphics/CoreGraphics.h>
void dkess_press_key(int key, NSEventModifierFlags modifier_flags);