You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to be a pretty old problem as it was discussed in cztomczak/cefcapi#9 ~6 years ago, but I'd like to open this issue because it's still present in CEF 116 with GTK 3.24: when trying to embed CEF into a GTK window, it fails due to the apparent visual mismatch, see the first error in the error log.
I can work around it using a hack based on the code in this comment, but it doesn't seem right to adapt GTK "owner" to use CEF visual, it would be much better if CEF used the default/current GTK visual instead.
The text was updated successfully, but these errors were encountered:
Make browser creation actually work by postponing it until the host
window is realized and so has a valid X11 Window.
Remove unnecessary code manually creating GTK widget and just use the
standard wxGTK wxWindow instead.
Add code for setting the visual compatible with CEF to avoid X11 errors,
see chromiumembedded/cef#3564, with many
thanks to Jiří Janoušek for finding and solving this problem originally.
Adjust the sample to handle wxWebView::Create() failure (not very
gracefully, but still better than just crashing) and to avoid using it
until it is fully created.
Update documentation to mention GTK limitations.
Based on that thread, and comments here, it sounds like changes in Chromium would be required to support your proposal. You're welcome to develop and propose the necessary changes to the Chromium devs, but I think they are unlikely to be accepted (unless they are very obviously beneficial to Chromium as well).
Given that a workaround currently exists for CEF, I'm going to close this issue as WontFix. If/when the necessary changes are made in upstream Chromium we can re-visit this issue.
This seems to be a pretty old problem as it was discussed in cztomczak/cefcapi#9 ~6 years ago, but I'd like to open this issue because it's still present in CEF 116 with GTK 3.24: when trying to embed CEF into a GTK window, it fails due to the apparent visual mismatch, see the first error in the error log.
Error log excerpt
I can work around it using a hack based on the code in this comment, but it doesn't seem right to adapt GTK "owner" to use CEF visual, it would be much better if CEF used the default/current GTK visual instead.
The text was updated successfully, but these errors were encountered: