Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ set_property(GLOBAL PROPERTY OS_FOLDERS ON)

# Specify the CEF distribution version.
if(NOT DEFINED CEF_VERSION)
set(CEF_VERSION "141.0.10+g1d65b0d+chromium-141.0.7390.123")
set(CEF_VERSION "142.0.17+g60aac24+chromium-142.0.7444.176")
endif()

# Determine the platform.
Expand Down
12 changes: 8 additions & 4 deletions java/org/cef/browser/CefBrowserOsr.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,15 @@ public void paint(Graphics g) {

@Override
public void addNotify() {
super.addNotify();
if (removed_) {
notifyAfterParentChanged();
removed_ = false;
if (!removed_) {
// On MacOS it may happen that the platform has not correctly notified us of a previous removal.
// In this case, the jogl canvas will throw an error because of a second add operation in a row.
// We patch this by post-notifying the canvas of the removal first, before notifying the canvas as normal.
super.removeNotify();
}
super.addNotify();
notifyAfterParentChanged();
removed_ = false;
}

@Override
Expand Down