summaryrefslogtreecommitdiff
path: root/Userland/Services/WindowServer/ScreenLayout.h
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2022-04-29 17:56:24 +0300
committerAndreas Kling <kling@serenityos.org>2022-05-05 20:55:57 +0200
commitd9a2706079d314416353148cc9822e997c37b680 (patch)
treeab9c68b8bb9651fb27c9cf28c14d7a88ce00f8fb /Userland/Services/WindowServer/ScreenLayout.h
parente6ebf9e5c1e82a638ac2a0c40166da36ca1d5bd5 (diff)
downloadserenity-d9a2706079d314416353148cc9822e997c37b680.zip
DisplaySettings+WindowServer: Add support for display connector devices
Diffstat (limited to 'Userland/Services/WindowServer/ScreenLayout.h')
-rw-r--r--Userland/Services/WindowServer/ScreenLayout.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Services/WindowServer/ScreenLayout.h b/Userland/Services/WindowServer/ScreenLayout.h
index 5fb3eddee8..039a7d48c2 100644
--- a/Userland/Services/WindowServer/ScreenLayout.h
+++ b/Userland/Services/WindowServer/ScreenLayout.h
@@ -21,6 +21,7 @@ public:
enum class Mode {
Invalid,
Device,
+ DisplayConnectorDevice,
Virtual,
} mode;
Optional<String> device;
@@ -42,6 +43,7 @@ public:
switch (mode) {
__ENUMERATE_MODE_ENUM(Invalid)
__ENUMERATE_MODE_ENUM(Device)
+ __ENUMERATE_MODE_ENUM(DisplayConnectorDevice)
__ENUMERATE_MODE_ENUM(Virtual)
}
VERIFY_NOT_REACHED();
@@ -59,7 +61,9 @@ public:
bool normalize();
bool load_config(Core::ConfigFile const& config_file, String* error_msg = nullptr);
bool save_config(Core::ConfigFile& config_file, bool sync = true) const;
+ // FIXME: Remove this once framebuffer devices are removed.
bool try_auto_add_framebuffer(String const&);
+ bool try_auto_add_display_connector(String const&);
// TODO: spaceship operator
bool operator!=(ScreenLayout const& other) const;