1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:37:35 +00:00

WindowServer: Add support for per-window override cursors.

Use this to implement automatic switching to an I-beam cursor when hovering
over a GTextEditor. :^)
This commit is contained in:
Andreas Kling 2019-03-31 23:52:02 +02:00
parent 42c95959a8
commit dcf6726487
13 changed files with 110 additions and 0 deletions

View file

@ -47,6 +47,11 @@ struct WSAPI_KeyModifiers { enum {
Ctrl = 1 << 2,
}; };
enum class WSAPI_StandardCursor : unsigned char {
None = 0,
Arrow,
IBeam,
};
struct WSAPI_ServerMessage {
enum Type : unsigned {
@ -164,6 +169,7 @@ struct WSAPI_ClientMessage {
Greeting,
SetWallpaper,
GetWallpaper,
SetWindowOverrideCursor,
};
Type type { Invalid };
int window_id { -1 };
@ -203,6 +209,9 @@ struct WSAPI_ClientMessage {
int shared_buffer_id;
int contents_size;
} clipboard;
struct {
WSAPI_StandardCursor cursor;
} cursor;
};
};