diff options
author | Tom <tomut@yahoo.com> | 2021-06-13 06:16:06 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-20 14:57:26 +0200 |
commit | 4392da970ac0fc433530579b13030a41ff4a8f59 (patch) | |
tree | cfae0a3ddc1b6c4f2db9f4cf7984eba761f3b5f0 /Userland/Services/NotificationServer/NotificationWindow.cpp | |
parent | 499c33ae0cf8892dfdf851c178b2b9f7a8bfb79f (diff) | |
download | serenity-4392da970ac0fc433530579b13030a41ff4a8f59.zip |
WindowServer: Add initial support for rendering on multiple screens
This allows WindowServer to use multiple framebuffer devices and
compose the desktop with any arbitrary layout. Currently, it is assumed
that it is configured contiguous and non-overlapping, but this should
eventually be enforced.
To make rendering efficient, each window now also tracks on which
screens it needs to be rendered. This way we don't have to iterate all
the windows for each screen but instead use the same rendering loop and
then only render to the screen (or screens) that the window actually
uses.
Diffstat (limited to 'Userland/Services/NotificationServer/NotificationWindow.cpp')
-rw-r--r-- | Userland/Services/NotificationServer/NotificationWindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Services/NotificationServer/NotificationWindow.cpp b/Userland/Services/NotificationServer/NotificationWindow.cpp index b05b25398b..99c03e23e2 100644 --- a/Userland/Services/NotificationServer/NotificationWindow.cpp +++ b/Userland/Services/NotificationServer/NotificationWindow.cpp @@ -129,9 +129,9 @@ void NotificationWindow::set_image(const Gfx::ShareableBitmap& image) } } -void NotificationWindow::screen_rect_change_event(GUI::ScreenRectChangeEvent& event) +void NotificationWindow::screen_rects_change_event(GUI::ScreenRectsChangeEvent& event) { - update_notification_window_locations(event.rect()); + update_notification_window_locations(event.rects()[event.main_screen_index()]); } } |