Hello!
My project has to target a specific (and rather old) version of Debian Linux, that also turns out to have these weird problems with the CEF-based application that I do not see happening anywhere else:
- browser windows lose focus after the main window is minimized and restored. It used to lose focus after maximize-restore too, but I managed to fix this by calling SetFocus(true) on restore - but, in case of minimize-restore this does not help.
- browser windows stop showing right-click context menus after two(!) left mouse button clicks - except for clicks that close a previously opened context menu(?!) ClientHandler::OnBeforeContextMenu() is still being called, but the menu itself does not show up. The only way to fix this behaviour until next unfocus/refocus that I found is to click on some focusable GTK control(s) on the main window, after which context menus pop up normally.
This is reproducible in the CEFClient example, the latest CEF version we can use on this system is 3112.
Perhaps somebody remembers if there ever were such problems, and if there was a fix or a workaround?
As I understand, the way CEF child windows are shown on top of a GTK main window is not entirely "correct" by GTK standards, so GTK might not know where to put the input focus in these specific cases? Anyway I'm looking for workaround(s)...