mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-02-01 13:24:46 +01:00
Added linux focus support
This commit is contained in:
parent
1080e1344b
commit
1526ad3a2a
|
|
@ -111,9 +111,11 @@ static void handleMessages(JNIEnv *env, jobject window_obj) {
|
|||
break;
|
||||
case FocusOut:
|
||||
releaseInput();
|
||||
env->SetBooleanField(window_obj, env->GetFieldID(env->GetObjectClass(window_obj), "focused", "Z"), JNI_FALSE);
|
||||
break;
|
||||
case FocusIn:
|
||||
acquireInput();
|
||||
env->SetBooleanField(window_obj, env->GetFieldID(env->GetObjectClass(window_obj), "focused", "Z"), JNI_TRUE);
|
||||
break;
|
||||
case MapNotify:
|
||||
env->SetBooleanField(window_obj, env->GetFieldID(env->GetObjectClass(window_obj), "dirty", "Z"), JNI_TRUE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue