You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix keyboard focus problem when embedd CEF window.
When wxGTKWindow::SetFocus, we will bring up the toplevel window to the user before
we set the focus to the child widget.
And now, we no longer need to consider whether gtk_window_is_active(tlw).
Because of these two reasons:
1. if the gtk_window_is_active(tlw), gtk_window_preset() don't harm anyway;
2. when foreign XWindow embedded(not via GtkPlug), maybe use XWindow controlled by GDK as their parent,
for example, a CEF browser window(which is now an XWindow) take ours as parent,
our tlw active state maybe altered(when CEF window take the keyboard focus) and unknown to us.
i.e. gtk_window_is_active(tlw) may still true while the focus is already taken by the CEF window.
we need to force to bring up our tlw to the user at this moment.
0 commit comments