summaryrefslogtreecommitdiff
path: root/Userland/Services/WindowServer/ClientConnection.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-03-26 19:53:49 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-26 20:33:23 +0100
commitd9f8f6a2d0e703b346b72694bc0437ad911feee0 (patch)
treefdc1fc69df99d7ede9995fceaeefe1373eec3fa7 /Userland/Services/WindowServer/ClientConnection.h
parent557927f25b9d0b9b3f5e4596b4640524050b9ca7 (diff)
downloadserenity-d9f8f6a2d0e703b346b72694bc0437ad911feee0.zip
WindowServer: Add an IPC call for taking a screenshot
This patch adds Messages::WindowServer::GetScreenBitmap. It returns the currently displayed on-screen bitmap as-is, as a Gfx::ShareableBitmap.
Diffstat (limited to 'Userland/Services/WindowServer/ClientConnection.h')
-rw-r--r--Userland/Services/WindowServer/ClientConnection.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Services/WindowServer/ClientConnection.h b/Userland/Services/WindowServer/ClientConnection.h
index 6ee7fe7456..51b84e7b82 100644
--- a/Userland/Services/WindowServer/ClientConnection.h
+++ b/Userland/Services/WindowServer/ClientConnection.h
@@ -167,6 +167,7 @@ private:
virtual OwnPtr<Messages::WindowServer::GetMouseAccelerationResponse> handle(const Messages::WindowServer::GetMouseAcceleration&) override;
virtual OwnPtr<Messages::WindowServer::SetScrollStepSizeResponse> handle(const Messages::WindowServer::SetScrollStepSize&) override;
virtual OwnPtr<Messages::WindowServer::GetScrollStepSizeResponse> handle(const Messages::WindowServer::GetScrollStepSize&) override;
+ virtual OwnPtr<Messages::WindowServer::GetScreenBitmapResponse> handle(const Messages::WindowServer::GetScreenBitmap&) override;
Window* window_from_id(i32 window_id);