Skip to content

Commit 2439381

Browse files
committed
Also nativeFocusChanged is freezing the app
1 parent 9186656 commit 2439381

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pythonforandroid/recipes/sdl2/mutex.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,15 @@ diff -Naur SDL.orig/src/core/android/SDL_android.c SDL/src/core/android/SDL_andr
152152
{
153153
- SDL_LockMutex(Android_ActivityMutex);
154154
+ __android_log_print(ANDROID_LOG_VERBOSE, "SDL", "nativeFocusChanged()");
155-
+ SDL_LockMutex(Android_ActivityMutex);
155+
+ //SDL_LockMutex(Android_ActivityMutex);
156156

157157
if (Android_Window) {
158158
__android_log_print(ANDROID_LOG_VERBOSE, "SDL", "nativeFocusChanged()");
159159
SDL_SendWindowEvent(Android_Window, (hasFocus ? SDL_WINDOWEVENT_FOCUS_GAINED : SDL_WINDOWEVENT_FOCUS_LOST), 0, 0);
160160
}
161161

162162
- SDL_UnlockMutex(Android_ActivityMutex);
163-
+ SDL_UnlockMutex(Android_ActivityMutex);
163+
+ //SDL_UnlockMutex(Android_ActivityMutex);
164164
}
165165

166166
JNIEXPORT void JNICALL SDL_JAVA_INTERFACE_INPUT_CONNECTION(nativeCommitText)(

0 commit comments

Comments
 (0)