Page 1 of 1

CEFClient Scaling on Linux (Ubuntu) Rendering Issues

PostPosted: Thu Jun 17, 2021 6:29 pm
by leeroy
When using the CEFClient sample and by extension our app that is based on this example, while scaling the desktop, the rendering of the browser page scaling is not accurate, while the window appears normal.

We're not sure what we can do to overcome this atm.

Linux (Ubuntu)
16.04, 18.04, 20.04, 21.04

CEF: https://cef-builds.spotifycdn.com/cef_binary_91.1.19%2Bga92e5d5%2Bchromium-91.0.4472.101_linux64.tar.bz2 (Standard Distribution)

Scaling: 100%
Image

Scaling: 200%
Image

Scaling: 300%
Image

Thanks
Lee

Re: CEFClient Scaling on Linux (Ubuntu) Rendering Issues

PostPosted: Tue Feb 22, 2022 4:11 pm
by leeroy
Hi, This is still an issue with CEF 4844 cefclient. However cefsimple does not seem to be impacted in the same way. Cefsimple only starts out small, but can be maximized (or whatever size) and otherwise renders correctly. Is there anything fundamentally different with cefsimple and cefclient where this is simply not possible with cefclient?

Re: CEFClient Scaling on Linux (Ubuntu) Rendering Issues

PostPosted: Tue Feb 22, 2022 4:35 pm
by magreenblatt
The cefclient app uses GTK3 to create the top-level window whereas cefsimple uses CEF/Chromium to create the top-level window internally. Try running "cefclient --use-views".

Re: CEFClient Scaling on Linux (Ubuntu) Rendering Issues

PostPosted: Wed Feb 23, 2022 7:27 pm
by leeroy
Yes that works, but it looks like there is some lifecycle methods that have changed, as we get a vanilla window pointing to google.com.