mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
headless-browser: Update visibility after minimizing/restoring windows
This commit is contained in:
parent
e094712e3a
commit
13b7c26e9f
|
|
@ -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 New Issue
Block a user