CEF137 linux client right-click context menu is misplaced

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.

CEF137 linux client right-click context menu is misplaced

Postby waynelu » Fri Jun 13, 2025 3:04 am

Hi

I tried the official linux client of CEF137, the right-click menu is misplaced.

https://cef-builds.spotifycdn.com/cef_b ... nt.tar.bz2

right_click_menu_bar_incorrect.png
right_click_menu_bar_incorrect.png (406.7 KiB) Viewed 5186 times
waynelu
Newbie
 
Posts: 7
Joined: Mon Apr 14, 2025 3:41 am

Re: CEF137 linux client right-click context menu is misplace

Postby waynelu » Wed Jun 25, 2025 9:56 pm

Update:
The bug seems related to below change
https://bitbucket.org/chromiumembedded/ ... 81e9031d29
waynelu
Newbie
 
Posts: 7
Joined: Mon Apr 14, 2025 3:41 am

Re: CEF137 linux client right-click context menu is misplace

Postby magreenblatt » Wed Jun 25, 2025 10:03 pm

What linux distribution and version? Are you passing any command-line flags to cefsimple?
magreenblatt
Site Admin
 
Posts: 13059
Joined: Fri May 29, 2009 6:57 pm

Re: CEF137 linux client right-click context menu is misplace

Postby edgardog » Thu Jun 26, 2025 8:33 am

I'm also having this issue.. branch 7204 (M138) , happens on Ubuntu 20 with cefclient (also when using --use-alloy-style). On ubuntu 22 it won't display at all. On Ubuntu 20 it seems to be off on X,Y coordinates.
I also have this problem on my app using CEF displaying a custom context menu, it is also off.
In the attached image I'm doing a right click on the top left corner and it renders in the middle
Attachments
contextmenuubuntu20.png
contextmenuubuntu20.png (66.74 KiB) Viewed 3303 times
edgardog
Expert
 
Posts: 134
Joined: Mon Feb 01, 2016 2:05 pm

Re: CEF137 linux client right-click context menu is misplace

Postby magreenblatt » Thu Jun 26, 2025 9:45 am

I believe ubuntu uses wayland by default. Can you try with “--ozone-platform=wayland” and “--ozone-platform=x11”?
magreenblatt
Site Admin
 
Posts: 13059
Joined: Fri May 29, 2009 6:57 pm

Re: CEF137 linux client right-click context menu is misplace

Postby waynelu » Thu Jun 26, 2025 8:25 pm

I used ubuntu 2204 with X11 by default.
If start cefsimple with --ozone-platform=wayland, right click menu looks good and position is correct.
While with “--ozone-platform=x11”, the issue is observed. Same as no argument case.
waynelu
Newbie
 
Posts: 7
Joined: Mon Apr 14, 2025 3:41 am

Re: CEF137 linux client right-click context menu is misplace

Postby magreenblatt » Thu Jun 26, 2025 9:50 pm

The bug seems related to below change
https://bitbucket.org/chromiumembedded/ ... 81e9031d29

How did you verify that this change is causing the issue?
magreenblatt
Site Admin
 
Posts: 13059
Joined: Fri May 29, 2009 6:57 pm

Re: CEF137 linux client right-click context menu is misplace

Postby waynelu » Sun Jun 29, 2025 8:35 pm

We found the issue is not observed in CEF release 137.0.4 but exists in 137.0.8
Then we compile and test the three commits in branch 7151 between the two versions.
waynelu
Newbie
 
Posts: 7
Joined: Mon Apr 14, 2025 3:41 am

Re: CEF137 linux client right-click context menu is misplace

Postby pdecarvalho » Wed Jul 02, 2025 2:51 pm

I am the author of the patch. I confirm that it is the cause of the misplacement when running on X11. But the patch was necessary because menus were not working at all for Wayland. I am already taking a look on how to solve this
pdecarvalho
Newbie
 
Posts: 1
Joined: Tue Jul 01, 2025 3:42 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 134 guests