Skip to content

Commit

Permalink
more is bette
Browse files Browse the repository at this point in the history
  • Loading branch information
1zun4 committed Nov 16, 2023
1 parent 5197cd6 commit a3d3315
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion native/CefBrowser_N.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1386,14 +1386,15 @@ Java_org_cef_browser_CefBrowser_1N_N_1SetFocus(JNIEnv* env,
jboolean enable) {
CefRefPtr<CefBrowser> browser = JNI_GET_BROWSER_OR_RETURN(env, obj);
browser->GetHost()->SetFocus(enable != JNI_FALSE);
browser->GetHost()->SetWindowlessFrameRate(120);
}

JNIEXPORT void JNICALL
Java_org_cef_browser_CefBrowser_1N_N_1SetWindowVisibility(JNIEnv* env,
jobject obj,
jboolean visible) {
CefRefPtr<CefBrowser> 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(),
Expand Down Expand Up @@ -1548,6 +1549,8 @@ Java_org_cef_browser_CefBrowser_1N_N_1WasResized(JNIEnv* env,
}
}
#endif

browser->GetHost()->SetWindowlessFrameRate(120);
}

JNIEXPORT void JNICALL
Expand Down

0 comments on commit a3d3315

Please sign in to comment.