mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
Taskbar+WindowServer: Adding to Quick Launch via windows :^)
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.
This commit is contained in:
parent
4386182be1
commit
70f7c10ab9
11 changed files with 105 additions and 0 deletions
|
@ -765,6 +765,14 @@ void WindowManager::stop_tile_window_animation()
|
|||
m_tile_window_overlay_animation = nullptr;
|
||||
}
|
||||
|
||||
void WindowManager::on_add_to_quick_launch(pid_t pid)
|
||||
{
|
||||
for_each_window_manager([&](WMConnectionFromClient& conn) {
|
||||
conn.async_add_to_quick_launch(conn.window_id(), pid);
|
||||
return IterationDecision::Continue;
|
||||
});
|
||||
}
|
||||
|
||||
void WindowManager::show_tile_window_overlay(Window& window, Screen const& cursor_screen, WindowTileType tile_type)
|
||||
{
|
||||
m_move_window_suggested_tile = tile_type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue