WindowServer: Broadcast screen rect changes to all clients.

GUI clients can now obtain the screen rect via GDesktop::rect().
This commit is contained in:
Andreas Kling 2019-04-03 17:22:14 +02:00
commit 318db1e48e
Notes: sideshowbarker 2024-07-19 14:50:07 +09:00
7 changed files with 40 additions and 0 deletions

View file

@ -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>