mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:07:36 +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:
parent
b8f3441300
commit
2b37fad60b
4 changed files with 12 additions and 0 deletions
|
@ -263,6 +263,11 @@ public:
|
|||
Window* hovered_window() const { return m_hovered_window.ptr(); }
|
||||
|
||||
void switch_to_window_stack(WindowStack&, Window* = nullptr, bool show_overlay = true);
|
||||
void switch_to_window_stack(u32 row, u32 col, Window* carry = nullptr, bool show_overlay = true)
|
||||
{
|
||||
if (row < window_stack_rows() && col < window_stack_columns())
|
||||
switch_to_window_stack(m_window_stacks[row][col], carry, show_overlay);
|
||||
}
|
||||
|
||||
size_t window_stack_rows() const { return m_window_stacks.size(); }
|
||||
size_t window_stack_columns() const { return m_window_stacks[0].size(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue