mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:48:11 +00:00

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.
38 lines
2 KiB
Text
38 lines
2 KiB
Text
endpoint WindowClient = 4
|
|
{
|
|
Paint(i32 window_id, Gfx::Size window_size, Vector<Gfx::Rect> rects) =|
|
|
MouseMove(i32 window_id, Gfx::Point mouse_position, u32 button, u32 buttons, u32 modifiers, i32 wheel_delta, bool is_drag, String drag_data_type) =|
|
|
MouseDown(i32 window_id, Gfx::Point mouse_position, u32 button, u32 buttons, u32 modifiers, i32 wheel_delta) =|
|
|
MouseDoubleClick(i32 window_id, Gfx::Point mouse_position, u32 button, u32 buttons, u32 modifiers, i32 wheel_delta) =|
|
|
MouseUp(i32 window_id, Gfx::Point mouse_position, u32 button, u32 buttons, u32 modifiers, i32 wheel_delta) =|
|
|
MouseWheel(i32 window_id, Gfx::Point mouse_position, u32 button, u32 buttons, u32 modifiers, i32 wheel_delta) =|
|
|
WindowEntered(i32 window_id) =|
|
|
WindowLeft(i32 window_id) =|
|
|
KeyDown(i32 window_id, u8 character, u32 key, u32 modifiers) =|
|
|
KeyUp(i32 window_id, u8 character, u32 key, u32 modifiers) =|
|
|
WindowActivated(i32 window_id) =|
|
|
WindowDeactivated(i32 window_id) =|
|
|
WindowStateChanged(i32 window_id, bool minimized, bool occluded) =|
|
|
WindowCloseRequest(i32 window_id) =|
|
|
WindowResized(i32 window_id, Gfx::Rect old_rect, Gfx::Rect new_rect) =|
|
|
|
|
MenuItemActivated(i32 menu_id, i32 identifier) =|
|
|
|
|
ScreenRectChanged(Gfx::Rect rect) =|
|
|
|
|
WM_WindowRemoved(i32 wm_id, i32 client_id, i32 window_id) =|
|
|
WM_WindowStateChanged(i32 wm_id, i32 client_id, i32 window_id, bool is_active, bool is_minimized, bool is_frameless, i32 window_type, String title, Gfx::Rect rect) =|
|
|
WM_WindowIconBitmapChanged(i32 wm_id, i32 client_id, i32 window_id, i32 icon_buffer_id, Gfx::Size icon_size) =|
|
|
WM_WindowRectChanged(i32 wm_id, i32 client_id, i32 window_id, Gfx::Rect rect) =|
|
|
|
|
AsyncSetWallpaperFinished(bool success) =|
|
|
|
|
DragAccepted() =|
|
|
DragCancelled() =|
|
|
|
|
DragDropped(i32 window_id, Gfx::Point mouse_position, String text, String data_type, String data) =|
|
|
|
|
UpdateSystemTheme(i32 system_theme_buffer_id) =|
|
|
|
|
DisplayLinkNotification() =|
|
|
}
|