Desktop: Focus app window when loading a document (#4124)

This commit is contained in:
Timon
2026-05-08 15:00:20 +00:00
committed by GitHub
parent 9d876ab27d
commit d97fe835b5
8 changed files with 23 additions and 0 deletions
@@ -11,6 +11,7 @@ pub enum AppWindowMessage {
Maximize,
Fullscreen,
Drag,
Focus,
Hide,
HideOthers,
ShowAll,
@@ -36,6 +36,10 @@ impl MessageHandler<AppWindowMessage, ()> for AppWindowMessageHandler {
#[cfg(not(target_family = "wasm"))]
responses.add(FrontendMessage::WindowDrag);
}
AppWindowMessage::Focus => {
#[cfg(not(target_family = "wasm"))]
responses.add(FrontendMessage::WindowFocus);
}
AppWindowMessage::Hide => {
#[cfg(not(target_family = "wasm"))]
responses.add(FrontendMessage::WindowHide);