From 8d4b93efadf8fed52339d46346886a651666fd5e Mon Sep 17 00:00:00 2001 From: Erwan Leboucher Date: Wed, 5 Aug 2026 14:39:48 +0200 Subject: [PATCH] fix(linux): propagate window focus to CEF --- src/runtime.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/runtime.rs b/src/runtime.rs index 4551e82..09859a5 100644 --- a/src/runtime.rs +++ b/src/runtime.rs @@ -909,6 +909,9 @@ impl ApplicationHandler for WinitCefApp { ); } WinitWindowEvent::Focused(focused) => { + for child in &appwindow.children { + child.host.set_focus(i32::from(focused)); + } self.emit_window_event(window_id, WindowEvent::Focused(focused)); } WinitWindowEvent::ThemeChanged(theme) => {