mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 21:07: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
|
@ -46,6 +46,8 @@ private:
|
|||
void handle_request(WSAPIGetWindowTitleRequest&);
|
||||
void handle_request(WSAPISetWindowRectRequest&);
|
||||
void handle_request(WSAPIGetWindowRectRequest&);
|
||||
void handle_request(WSAPISetClipboardContentsRequest&);
|
||||
void handle_request(WSAPIGetClipboardContentsRequest&);
|
||||
void handle_request(WSAPICreateWindowRequest&);
|
||||
void handle_request(WSAPIDestroyWindowRequest&);
|
||||
void handle_request(WSAPIInvalidateRectRequest&);
|
||||
|
@ -69,4 +71,6 @@ private:
|
|||
int m_next_menubar_id { 10000 };
|
||||
int m_next_menu_id { 20000 };
|
||||
int m_next_window_id { 1982 };
|
||||
|
||||
RetainPtr<SharedBuffer> m_last_sent_clipboard_content;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue