mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
WindowServer: Add initial support for rendering on multiple screens
This allows WindowServer to use multiple framebuffer devices and compose the desktop with any arbitrary layout. Currently, it is assumed that it is configured contiguous and non-overlapping, but this should eventually be enforced. To make rendering efficient, each window now also tracks on which screens it needs to be rendered. This way we don't have to iterate all the windows for each screen but instead use the same rendering loop and then only render to the screen (or screens) that the window actually uses.
This commit is contained in:
@@ -72,9 +72,9 @@ void ClientConnection::update_system_fonts(String const& default_font_query, Str
|
||||
Gfx::FontDatabase::set_fixed_width_font_query(fixed_width_font_query);
|
||||
}
|
||||
|
||||
void ClientConnection::update_screen_rect(const Gfx::IntRect& rect)
|
||||
void ClientConnection::update_screen_rects(const Vector<Gfx::IntRect>& rects, u32 main_screen)
|
||||
{
|
||||
m_page_host->set_screen_rect(rect);
|
||||
m_page_host->set_screen_rects(rects, main_screen);
|
||||
}
|
||||
|
||||
void ClientConnection::load_url(const URL& url)
|
||||
|
||||
Reference in New Issue
Block a user