summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/Window.h
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2021-06-13 06:16:06 -0600
committerAndreas Kling <kling@serenityos.org>2021-06-20 14:57:26 +0200
commit4392da970ac0fc433530579b13030a41ff4a8f59 (patch)
treecfae0a3ddc1b6c4f2db9f4cf7984eba761f3b5f0 /Userland/Libraries/LibGUI/Window.h
parent499c33ae0cf8892dfdf851c178b2b9f7a8bfb79f (diff)
downloadserenity-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/Libraries/LibGUI/Window.h')
-rw-r--r--Userland/Libraries/LibGUI/Window.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/Window.h b/Userland/Libraries/LibGUI/Window.h
index 987dac4e8b..e06b1033fc 100644
--- a/Userland/Libraries/LibGUI/Window.h
+++ b/Userland/Libraries/LibGUI/Window.h
@@ -203,7 +203,7 @@ public:
protected:
Window(Core::Object* parent = nullptr);
virtual void wm_event(WMEvent&);
- virtual void screen_rect_change_event(ScreenRectChangeEvent&);
+ virtual void screen_rects_change_event(ScreenRectsChangeEvent&);
private:
void update_cursor();
@@ -218,7 +218,7 @@ private:
void handle_became_active_or_inactive_event(Core::Event&);
void handle_close_request();
void handle_theme_change_event(ThemeChangeEvent&);
- void handle_screen_rect_change_event(ScreenRectChangeEvent&);
+ void handle_screen_rects_change_event(ScreenRectsChangeEvent&);
void handle_drag_move_event(DragEvent&);
void handle_left_event();