Skip to content

Commit 6aee1cd

Browse files
authored
Merge pull request #7 from SableClient/fix/linux-pointer-focus
fix(linux): propagate window focus to CEF
2 parents c0d9ff8 + 8d4b93e commit 6aee1cd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/runtime.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,9 @@ impl<T: UserEvent> ApplicationHandler for WinitCefApp<T> {
909909
);
910910
}
911911
WinitWindowEvent::Focused(focused) => {
912+
for child in &appwindow.children {
913+
child.host.set_focus(i32::from(focused));
914+
}
912915
self.emit_window_event(window_id, WindowEvent::Focused(focused));
913916
}
914917
WinitWindowEvent::ThemeChanged(theme) => {

0 commit comments

Comments
 (0)