mirror of
https://github.com/RGBCube/serenity
synced 2025-05-17 21:55:07 +00:00
WindowServer: Broadcast screen rect changes to all clients.
GUI clients can now obtain the screen rect via GDesktop::rect().
This commit is contained in:
parent
c02c9880b6
commit
318db1e48e
7 changed files with 40 additions and 0 deletions
|
@ -349,6 +349,10 @@ void WSWindowManager::set_resolution(int width, int height)
|
|||
m_buffers_are_flipped = false;
|
||||
invalidate();
|
||||
compose();
|
||||
|
||||
WSClientConnection::for_each_client([&] (WSClientConnection& client) {
|
||||
client.notify_about_new_screen_rect(m_screen_rect);
|
||||
});
|
||||
}
|
||||
|
||||
template<typename Callback>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue