mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +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
|
@ -163,6 +163,8 @@ void WebViewBridge::initialize_client(CreateNewClient create_new_client)
|
|||
|
||||
client().async_set_device_pixels_per_css_pixel(m_client_state.page_index, m_device_pixel_ratio);
|
||||
client().async_set_preferred_color_scheme(m_client_state.page_index, m_preferred_color_scheme);
|
||||
|
||||
set_system_visibility_state(m_system_visibility_state);
|
||||
update_palette();
|
||||
|
||||
if (!m_screen_rects.is_empty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue