mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-04 07:09:41 +00:00
You can now add applications to Quick Launch via the context menu option of their windows. Clicking it creates an event with the stored PID of the process that created the window. The Taskbar receives the event and tells the QuickLaunchWidget to add the PID, which then gets the executable using /sys/kernel/processes. It also looks for an AppFile using the name from the process object and if there is one, it uses that, since it should contain a better formatted name.
17 lines
1,003 B
Text
17 lines
1,003 B
Text
#include <LibGfx/ShareableBitmap.h>
|
|
|
|
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, u32 workspace_row, u32 workspace_column, bool is_active, bool is_blocking, bool is_minimized, bool is_frameless, i32 window_type, [UTF8] DeprecatedString 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) =|
|
|
super_d_key_pressed(i32 wm_id) =|
|
|
super_digit_key_pressed(i32 wm_id, u8 digit) =|
|
|
workspace_changed(i32 wm_id, u32 row, u32 column) =|
|
|
keymap_changed(i32 wm_id, [UTF8] DeprecatedString keymap) =|
|
|
add_to_quick_launch(i32 wm_id, i32 process_id) =|
|
|
}
|