mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 23:30:20 +00:00
UI: Send the current system visibility state to new WebContent clients
After a crash, we need to inform the new WebContent process of the current system visibility state.
This commit is contained in:
parent
83b1db785a
commit
957032809b
Notes:
github-actions[bot]
2024-11-13 19:37:42 +00:00
Author: https://github.com/trflynn89
Commit: 957032809b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2318
3 changed files with 8 additions and 2 deletions
|
@ -655,8 +655,10 @@ void WebContentView::initialize_client(WebView::ViewImplementation::CreateNewCli
|
|||
client().async_set_window_handle(m_client_state.page_index, m_client_state.client_handle);
|
||||
|
||||
client().async_set_device_pixels_per_css_pixel(m_client_state.page_index, m_device_pixel_ratio);
|
||||
update_palette();
|
||||
|
||||
set_system_visibility_state(m_system_visibility_state);
|
||||
|
||||
update_palette();
|
||||
update_screen_rects();
|
||||
|
||||
if (auto webdriver_content_ipc_path = WebView::Application::chrome_options().webdriver_content_ipc_path; webdriver_content_ipc_path.has_value())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue