summaryrefslogtreecommitdiff
path: root/Base
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 /Base
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 'Base')
-rw-r--r--Base/etc/WindowServer.ini8
1 files changed, 7 insertions, 1 deletions
diff --git a/Base/etc/WindowServer.ini b/Base/etc/WindowServer.ini
index 4c83ec6273..177edeef48 100644
--- a/Base/etc/WindowServer.ini
+++ b/Base/etc/WindowServer.ini
@@ -1,4 +1,10 @@
-[Screen]
+[Screens]
+MainScreen=0
+
+[Screen0]
+Device=/dev/fb0
+Left=0
+Top=0
Width=1024
Height=768
ScaleFactor=1