diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-04-03 17:22:14 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-04-03 17:22:14 +0200 |
commit | 318db1e48e49a6eec5a27355e39a38cbc243475c (patch) | |
tree | cf4eeb98b4a27a87a1b5cf4953b3527979390a2c /LibGUI/GDesktop.h | |
parent | c02c9880b61569455eeea1dacaa15d29c33021ea (diff) | |
download | serenity-318db1e48e49a6eec5a27355e39a38cbc243475c.zip |
WindowServer: Broadcast screen rect changes to all clients.
GUI clients can now obtain the screen rect via GDesktop::rect().
Diffstat (limited to 'LibGUI/GDesktop.h')
-rw-r--r-- | LibGUI/GDesktop.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/LibGUI/GDesktop.h b/LibGUI/GDesktop.h index 88341cfd7c..4553468815 100644 --- a/LibGUI/GDesktop.h +++ b/LibGUI/GDesktop.h @@ -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; }; |