Skip to content

Commit 806515d

Browse files
committed
Fixed a small upstream change.
1 parent c7914e9 commit 806515d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/jni/jni_EventDispatcher.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ void jni_EventDispatcher(uiohook_event * const event) {
4040
/* The following start and stop functions are less than ideal for attaching JNI.
4141
* TODO Consider moving threads out of the lib and into Java.
4242
*/
43-
case EVENT_THREAD_START:
43+
case EVENT_THREAD_STARTED:
4444
if ((*jvm)->GetEnv(jvm, (void **)(&env), jvm_attach_args.version) == JNI_EDETACHED) {
4545
(*jvm)->AttachCurrentThread(jvm, (void **)(&env), &jvm_attach_args);
4646
}
4747
break;
4848

49-
case EVENT_THREAD_STOP:
49+
case EVENT_THREAD_STOPPED:
5050
// NOTE This callback may note be called from Windows under some circumstances.
5151
if ((*jvm)->GetEnv(jvm, (void **)(&env), jvm_attach_args.version) == JNI_OK) {
5252
if ((*jvm)->DetachCurrentThread(jvm) == JNI_OK) {
@@ -55,8 +55,8 @@ void jni_EventDispatcher(uiohook_event * const event) {
5555
}
5656
break;
5757

58-
case EVENT_HOOK_START:
59-
case EVENT_HOOK_STOP:
58+
case EVENT_HOOK_ENABLED:
59+
case EVENT_HOOK_DISABLED:
6060
break;
6161

6262
case EVENT_KEY_PRESSED:

0 commit comments

Comments
 (0)