CEFClient Scaling on Linux (Ubuntu) Rendering Issues

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

CEFClient Scaling on Linux (Ubuntu) Rendering Issues

Postby leeroy » Thu Jun 17, 2021 6:29 pm

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
leeroy
Expert
 
Posts: 103
Joined: Mon Jan 06, 2020 6:27 pm

Re: CEFClient Scaling on Linux (Ubuntu) Rendering Issues

Postby leeroy » Tue Feb 22, 2022 4:11 pm

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?
leeroy
Expert
 
Posts: 103
Joined: Mon Jan 06, 2020 6:27 pm

Re: CEFClient Scaling on Linux (Ubuntu) Rendering Issues

Postby magreenblatt » Tue Feb 22, 2022 4:35 pm

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".
magreenblatt
Site Admin
 
Posts: 12379
Joined: Fri May 29, 2009 6:57 pm

Re: CEFClient Scaling on Linux (Ubuntu) Rendering Issues

Postby leeroy » Wed Feb 23, 2022 7:27 pm

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.
leeroy
Expert
 
Posts: 103
Joined: Mon Jan 06, 2020 6:27 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 16 guests