mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00:00

To make Assistant useful we need a way to quickly trigger it. I've added a new specialized event coming from the window server for when a user is holding down 'Super' and hits 'Space'. The Taskbar will be able to listen for this event and spawn a new instance of the Assistant if it's not already running.
10 lines
690 B
Text
10 lines
690 B
Text
endpoint WindowManagerClient
|
|
{
|
|
window_removed(i32 wm_id, i32 client_id, i32 window_id) =|
|
|
window_state_changed(i32 wm_id, i32 client_id, i32 window_id, i32 parent_client_id, i32 parent_window_id, bool is_active, bool is_minimized, bool is_modal, bool is_frameless, i32 window_type, [UTF8] String title, Gfx::IntRect rect, Optional<i32> progress) =|
|
|
window_icon_bitmap_changed(i32 wm_id, i32 client_id, i32 window_id, Gfx::ShareableBitmap bitmap) =|
|
|
window_rect_changed(i32 wm_id, i32 client_id, i32 window_id, Gfx::IntRect rect) =|
|
|
applet_area_size_changed(i32 wm_id, Gfx::IntSize size) =|
|
|
super_key_pressed(i32 wm_id) =|
|
|
super_space_key_pressed(i32 wm_id) =|
|
|
}
|