diff options
author | Tom <tomut@yahoo.com> | 2021-06-30 19:12:02 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-03 12:27:23 +0200 |
commit | 7984c2836d7a7e472aca383225deed5d50601e06 (patch) | |
tree | 477073e39dc6351baa6f404651beecbbf6e30adb /Userland/Libraries/LibGUI/Desktop.cpp | |
parent | 584b144953ba0f715c02b54444a61674a4c99e8a (diff) | |
download | serenity-7984c2836d7a7e472aca383225deed5d50601e06.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibGUI/Desktop.cpp')
-rw-r--r-- | Userland/Libraries/LibGUI/Desktop.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/Desktop.cpp b/Userland/Libraries/LibGUI/Desktop.cpp index 6bc688c6ba..3363c448e8 100644 --- a/Userland/Libraries/LibGUI/Desktop.cpp +++ b/Userland/Libraries/LibGUI/Desktop.cpp @@ -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) |