mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:37:34 +00:00
WindowServer+LibGUI: Add a server-side clipboard.
On the client side, use GClipboard's data() and set_data(String) to access the global clipboard. :^)
This commit is contained in:
parent
eda0866992
commit
6820f9e14f
12 changed files with 250 additions and 2 deletions
|
@ -85,6 +85,8 @@ struct WSAPI_ServerMessage {
|
|||
DidGetWindowRect,
|
||||
DidGetWindowBackingStore,
|
||||
Greeting,
|
||||
DidGetClipboardContents,
|
||||
DidSetClipboardContents,
|
||||
};
|
||||
Type type { Invalid };
|
||||
int window_id { -1 };
|
||||
|
@ -128,6 +130,10 @@ struct WSAPI_ServerMessage {
|
|||
int shared_buffer_id;
|
||||
bool has_alpha_channel;
|
||||
} backing;
|
||||
struct {
|
||||
int shared_buffer_id;
|
||||
int contents_size;
|
||||
} clipboard;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -154,6 +160,8 @@ struct WSAPI_ClientMessage {
|
|||
SetGlobalCursorTracking,
|
||||
SetWindowOpacity,
|
||||
SetWindowBackingStore,
|
||||
GetClipboardContents,
|
||||
SetClipboardContents,
|
||||
};
|
||||
Type type { Invalid };
|
||||
int window_id { -1 };
|
||||
|
@ -183,6 +191,10 @@ struct WSAPI_ClientMessage {
|
|||
int shared_buffer_id;
|
||||
bool has_alpha_channel;
|
||||
} backing;
|
||||
struct {
|
||||
int shared_buffer_id;
|
||||
int contents_size;
|
||||
} clipboard;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue