mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-28 15:28:55 +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
Notes:
sideshowbarker
2024-07-19 14:50:07 +09:00
Author: https://github.com/awesomekling
Commit: 318db1e48e
7 changed files with 40 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
#include <LibGUI/GEventLoop.h>
|
||||
#include <AK/Eternal.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
GDesktop& GDesktop::the()
|
||||
{
|
||||
|
@ -13,6 +14,11 @@ GDesktop::GDesktop()
|
|||
{
|
||||
}
|
||||
|
||||
void GDesktop::did_receive_screen_rect(Badge<GEventLoop>, const Rect& rect)
|
||||
{
|
||||
m_rect = rect;
|
||||
}
|
||||
|
||||
bool GDesktop::set_wallpaper(const String& path)
|
||||
{
|
||||
WSAPI_ClientMessage message;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue