1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +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

@ -91,6 +91,7 @@ struct WSAPI_ServerMessage {
DidSetWindowBackingStore,
DidSetWallpaper,
DidGetWallpaper,
ScreenRectChanged,
};
Type type { Invalid };
int window_id { -1 };
@ -101,7 +102,11 @@ struct WSAPI_ServerMessage {
union {
struct {
int server_pid;
WSAPI_Rect screen_rect;
} greeting;
struct {
WSAPI_Rect rect;
} screen;
struct {
WSAPI_Rect rect;
WSAPI_Rect old_rect;