mirror of
https://github.com/Stremio/stremio-shell-ng.git
synced 2026-05-15 03:51:41 +00:00
Focus window on resize
This commit is contained in:
parent
76842dcc65
commit
a905baf3ef
1 changed files with 2 additions and 1 deletions
|
|
@ -29,8 +29,9 @@ impl WebView {
|
||||||
let mut rect = mem::zeroed();
|
let mut rect = mem::zeroed();
|
||||||
GetClientRect(hwnd, &mut rect);
|
GetClientRect(hwnd, &mut rect);
|
||||||
controller.put_bounds(rect).ok();
|
controller.put_bounds(rect).ok();
|
||||||
controller.put_is_visible(true).ok();
|
|
||||||
}
|
}
|
||||||
|
controller.put_is_visible(true).ok();
|
||||||
|
controller.move_focus(webview2::MoveFocusReason::Programmatic).ok();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue