diff --git a/native/CefBrowser_N.cpp b/native/CefBrowser_N.cpp index a60a95e0..312fac6f 100644 --- a/native/CefBrowser_N.cpp +++ b/native/CefBrowser_N.cpp @@ -1386,6 +1386,7 @@ Java_org_cef_browser_CefBrowser_1N_N_1SetFocus(JNIEnv* env, jboolean enable) { CefRefPtr browser = JNI_GET_BROWSER_OR_RETURN(env, obj); browser->GetHost()->SetFocus(enable != JNI_FALSE); + browser->GetHost()->SetWindowlessFrameRate(120); } JNIEXPORT void JNICALL @@ -1393,7 +1394,7 @@ Java_org_cef_browser_CefBrowser_1N_N_1SetWindowVisibility(JNIEnv* env, jobject obj, jboolean visible) { CefRefPtr browser = JNI_GET_BROWSER_OR_RETURN(env, obj); - + browser->GetHost()->SetWindowlessFrameRate(120); #if defined(OS_MACOSX) if (!browser->GetHost()->IsWindowRenderingDisabled()) { util_mac::SetVisibility(browser->GetHost()->GetWindowHandle(), @@ -1548,6 +1549,8 @@ Java_org_cef_browser_CefBrowser_1N_N_1WasResized(JNIEnv* env, } } #endif + + browser->GetHost()->SetWindowlessFrameRate(120); } JNIEXPORT void JNICALL