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

WindowServer: Add set_virtual_dekstop WindowManager message

Users can specify the row and column of the virtual desktop, and
WindowServer will animate to it.
This commit is contained in:
Peter Elliott 2021-07-18 12:42:53 -06:00 committed by Andreas Kling
parent b8f3441300
commit 2b37fad60b
4 changed files with 12 additions and 0 deletions

View file

@ -154,6 +154,11 @@ void WMClientConnection::set_manager_window(i32 window_id)
WindowManager::the().greet_window_manager(*this);
}
void WMClientConnection::set_virtual_desktop(u32 row, u32 col)
{
WindowManager::the().switch_to_window_stack(row, col);
}
void WMClientConnection::set_window_taskbar_rect(i32 client_id, i32 window_id, Gfx::IntRect const& rect)
{
// Because the Taskbar (which should be the only user of this API) does not own the