mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:27:35 +00:00
Clipboard: Move the system clipboard to a dedicated service process :^)
This commit moves the clipboard from WindowServer into a new Clipboard service program. Clipboard runs as the unprivileged "clipboard" user and with a much tighter pledge than WindowServer. To keep things working as before, all GUI::Application users now make a connection to Clipboard after making the connection to WindowServer. It could be interesting to connect to Clipboard on demand, but right now that would necessitate expanding every GUI app's pledge to include "unix" and also unveiling the clipboard portal, which I prefer not to.
This commit is contained in:
parent
f4c60740bd
commit
244efe050a
25 changed files with 447 additions and 146 deletions
|
@ -59,8 +59,6 @@ endpoint WindowServer = 2
|
|||
SetWindowOpacity(i32 window_id, float opacity) => ()
|
||||
|
||||
SetWindowBackingStore(i32 window_id, i32 bpp, i32 pitch, i32 shbuf_id, bool has_alpha_channel, Gfx::Size size, bool flush_immediately) => ()
|
||||
GetClipboardContents() => (i32 shbuf_id, i32 content_size, String content_type)
|
||||
SetClipboardContents(i32 shbuf_id, i32 content_size, String content_type) => ()
|
||||
|
||||
WM_SetActiveWindow(i32 client_id, i32 window_id) =|
|
||||
WM_SetWindowMinimized(i32 client_id, i32 window_id, bool minimized) =|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue