1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:47:34 +00:00

WindowServer: Add IPC endpoint to get the color under cursor

This allows any client to ask the WindowServer to give it the color
of the screen bitmap under the cursor.

There's currently no way to get the screen bitmap *without* the
cursor already drawn on it, so for now we just take a pixel
beside the actual cursor position to avoid just getting the cursors
color.
This commit is contained in:
Mustafa Quraish 2021-09-03 23:14:37 -04:00 committed by Andreas Kling
parent 3da4fdd0eb
commit 69d708fb21
3 changed files with 12 additions and 0 deletions

View file

@ -169,6 +169,7 @@ private:
virtual void add_window_stealing_for_client(i32, i32) override;
virtual void remove_window_stealing_for_client(i32, i32) override;
virtual void remove_window_stealing(i32) override;
virtual Messages::WindowServer::GetColorUnderCursorResponse get_color_under_cursor() override;
Window* window_from_id(i32 window_id);