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:
Timothy Flynn 2024-11-13 11:31:06 -05:00 committed by Andreas Kling
commit 957032809b
Notes: github-actions[bot] 2024-11-13 19:37:42 +00:00
3 changed files with 8 additions and 2 deletions

View file

@ -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()) {