on_after_created_browser_pane

Function on_after_created_browser_pane 

Source
pub fn on_after_created_browser_pane(state: &Arc<AppState>, browser: &Browser)
Expand description

Called from AgentMuxHandler::on_after_created when the browser being registered is a pane (label prefix browser-pane-*).

Responsibilities:

  1. Raise the pane’s outer HWND to the top of its parent’s Z-order so mouse-wheel events reach the pane renderer rather than main’s.
  2. Install the WM_SETFOCUS redirect subclass on the pane’s HWND tree so Chromium’s internal focus-steals on page load don’t yank keyboard focus away from the main window.