diff options
author | koekeishiya <aasvi93@hotmail.com> | 2018-05-22 18:13:58 +0200 |
---|---|---|
committer | koekeishiya <aasvi93@hotmail.com> | 2018-05-22 18:13:58 +0200 |
commit | 1f639be61318987b6b1a2f7adea6085ee584dcac (patch) | |
tree | 4c301b4a2bde9ba13539754f7585f3eeb61b75f0 /src/hotkey.h | |
parent | 6f7e2937aa823dffc69ede65031962bb83cd1e5b (diff) | |
download | skhd-1f639be61318987b6b1a2f7adea6085ee584dcac.tar.gz skhd-1f639be61318987b6b1a2f7adea6085ee584dcac.zip |
code cleanup
Diffstat (limited to 'src/hotkey.h')
-rw-r--r-- | src/hotkey.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/hotkey.h b/src/hotkey.h index b0ca504..59ee243 100644 --- a/src/hotkey.h +++ b/src/hotkey.h @@ -66,12 +66,6 @@ struct hotkey struct mode **mode_list; }; -struct systemkey -{ - struct hotkey eventkey; - bool intercept; -}; - static inline void add_flags(struct hotkey *hotkey, uint32_t flag) { @@ -98,7 +92,7 @@ bool same_hotkey(struct hotkey *a, struct hotkey *b); unsigned long hash_hotkey(struct hotkey *a); struct hotkey create_eventkey(CGEventRef event); -struct systemkey create_systemkey(CGEventRef event); +bool intercept_systemkey(CGEventRef event, struct hotkey *eventkey); bool find_and_exec_hotkey(struct hotkey *eventkey, struct table *mode_map, struct mode **current_mode); void free_mode_map(struct table *mode_map); |