mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:47:44 +00:00
WindowServer: Add API to change virtual desktop settings
This also adds the ability to query how many virtual desktops are set up, and for the Taskbar to be notified when the active virtual desktop has changed.
This commit is contained in:
parent
584b144953
commit
7984c2836d
21 changed files with 383 additions and 64 deletions
|
@ -25,7 +25,7 @@ Desktop::Desktop()
|
|||
{
|
||||
}
|
||||
|
||||
void Desktop::did_receive_screen_rects(Badge<WindowServerConnection>, const Vector<Gfx::IntRect, 4>& rects, size_t main_screen_index)
|
||||
void Desktop::did_receive_screen_rects(Badge<WindowServerConnection>, const Vector<Gfx::IntRect, 4>& rects, size_t main_screen_index, unsigned virtual_desktop_rows, unsigned virtual_desktop_columns)
|
||||
{
|
||||
m_main_screen_index = main_screen_index;
|
||||
m_rects = rects;
|
||||
|
@ -36,6 +36,9 @@ void Desktop::did_receive_screen_rects(Badge<WindowServerConnection>, const Vect
|
|||
} else {
|
||||
m_bounding_rect = {};
|
||||
}
|
||||
|
||||
m_virtual_desktop_rows = virtual_desktop_rows;
|
||||
m_virtual_desktop_columns = virtual_desktop_columns;
|
||||
}
|
||||
|
||||
void Desktop::set_background_color(const StringView& background_color)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue