Added linux focus support

This commit is contained in:
Elias Naur 2003-07-16 21:10:28 +00:00
parent 1080e1344b
commit 1526ad3a2a
1 changed files with 2 additions and 0 deletions

View File

@ -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);