Problem with displaying the context menu by clicking

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.

Problem with displaying the context menu by clicking

Postby senya » Mon Sep 18, 2017 3:06 pm

Hello.
I use lubuntu OS 16.04 64bit, cef framework 3.3112.1658. The mode of "manual rotation" of the event cycle is used - CefDoMessageLoopWork() called by timer. The context menu with the right mouse click is not always opened and disappears through the interval with which CefDoMessageLoopWork () is called. With some other contextual menus in the interface of the loaded page (for example, at facebook.com signup page) the same thing happens. But if you call the right mouse button event programmatically using SendMouseClickEvent, everything works fine. Video (36 secs) problem illustration: https://drive.google.com/file/d/0B1NbTT ... sp=sharing

In the example of a cefsimple, the context menu is not displayed at all with the right mouse click. Video (1 min 17 secs) problem illustration: https://drive.google.com/file/d/0B1NbTT ... sp=sharing

The same behavior at my system in cef framework 3.3071.1646 - older version.

In the cefclient example context menus work fine.
Sergey, developer from Moscow region.
It's hot here today
https://docs.zoho.eu/file/40henad156481 ... 29fb3a8ebe
senya
Mentor
 
Posts: 54
Joined: Mon Sep 18, 2017 2:58 pm

Re: Problem with displaying the context menu by clicking

Postby magreenblatt » Tue Sep 19, 2017 1:21 am

You should implement your message loop using the CefBrowserProcessHandler::OnScheduleMessagePumpWork callback. See documentation on that method for usage.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Problem with displaying the context menu by clicking

Postby Czarek » Tue Sep 19, 2017 4:38 am

@magreenblatt Mouse context menu doesn't work with external message pump on Linux, this was reported in Issue #2002: https://bitbucket.org/chromiumembedded/ ... s-slow-and
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am


Return to Support Forum

Who is online

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