mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 03:57:15 +02:00
WindowServer: Add API to set/get screen layouts
This sets the stage so that DisplaySettings can configure the screen layout and set various screen resolutions in one go. It also allows for an easy "atomic" revert of the previous settings.
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 11:58:55 +09:00
Author: https://github.com/tomuta Commit: https://github.com/SerenityOS/serenity/commit/aa15bf81e48 Pull-request: https://github.com/SerenityOS/serenity/pull/8032 Reviewed-by: https://github.com/Dexesttp
@@ -11,6 +11,7 @@
|
||||
#include <LibGUI/ColorInput.h>
|
||||
#include <LibGUI/ComboBox.h>
|
||||
#include <LibGUI/RadioButton.h>
|
||||
#include <WindowServer/ScreenLayout.h>
|
||||
|
||||
namespace DisplaySettings {
|
||||
|
||||
@@ -27,6 +28,7 @@ private:
|
||||
void create_resolution_list();
|
||||
void load_current_settings();
|
||||
|
||||
WindowServer::ScreenLayout m_screen_layout;
|
||||
Vector<Gfx::IntSize> m_resolutions;
|
||||
|
||||
RefPtr<DisplaySettings::MonitorWidget> m_monitor_widget;
|
||||
|
||||
Reference in New Issue
Block a user