1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 20:45:08 +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:
Andreas Kling 2019-04-03 17:22:14 +02:00
parent c02c9880b6
commit 318db1e48e
7 changed files with 40 additions and 0 deletions

View file

@ -1,8 +1,11 @@
#pragma once
#include <AK/AKString.h>
#include <AK/Badge.h>
#include <SharedGraphics/Rect.h>
class GEventLoop;
class GDesktop {
public:
static GDesktop& the();
@ -11,6 +14,9 @@ public:
String wallpaper() const;
bool set_wallpaper(const String& path);
Rect rect() const { return m_rect; }
void did_receive_screen_rect(Badge<GEventLoop>, const Rect&);
private:
Rect m_rect;
};