mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
headless-browser: Update visibility after minimizing/restoring windows
This commit is contained in:
parent
e094712e3a
commit
13b7c26e9f
Notes:
github-actions[bot]
2024-11-13 10:01:59 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/13b7c26e9fa Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2303
1 changed files with 8 additions and 0 deletions
|
@ -53,6 +53,14 @@ HeadlessWebView::HeadlessWebView(Core::AnonymousBuffer theme, Web::DevicePixelSi
|
||||||
client().async_did_update_window_rect(m_client_state.page_index);
|
client().async_did_update_window_rect(m_client_state.page_index);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
on_restore_window = [this]() {
|
||||||
|
client().async_set_system_visibility_state(m_client_state.page_index, true);
|
||||||
|
};
|
||||||
|
|
||||||
|
on_minimize_window = [this]() {
|
||||||
|
client().async_set_system_visibility_state(m_client_state.page_index, false);
|
||||||
|
};
|
||||||
|
|
||||||
on_maximize_window = [this]() {
|
on_maximize_window = [this]() {
|
||||||
m_viewport_size = screen_rect.size();
|
m_viewport_size = screen_rect.size();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue