Skip to content

Commit

Permalink
Update android.c
Browse files Browse the repository at this point in the history
  • Loading branch information
yu-zify authored Jun 8, 2024
1 parent b13cae8 commit 9813d27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/cpp/lorie/android.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ Java_com_termux_x11_CmdEntryPoint_start(JNIEnv *env, unused jclass cls, jobjectA

JNIEXPORT void JNICALL
Java_com_termux_x11_CmdEntryPoint_windowChanged(JNIEnv *env, unused jobject cls, jobject surface, jstring jname) {
/* const char *name = !jname ? NULL : (*env)->GetStringUTFChars(env, jname, JNI_FALSE);
const char *name = !jname ? NULL : (*env)->GetStringUTFChars(env, jname, JNI_FALSE);
QueueWorkProc(lorieChangeScreenName, NULL, name ? strndup(name, 1024) : strdup("screen"));
if (name)
/* if (name)
(*env)->ReleaseStringUTFChars(env, jname, name);
*/
QueueWorkProc(lorieChangeWindow, NULL, surface ? (*env)->NewGlobalRef(env, surface) : NULL);
Expand Down

0 comments on commit 9813d27

Please sign in to comment.