1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 09:17:35 +00:00

WindowServer: Delete dead set_screen parameter

This commit is contained in:
Nico Weber 2021-01-15 10:30:31 -05:00 committed by Andreas Kling
parent b2086c8d77
commit 867807fb2b
2 changed files with 3 additions and 8 deletions

View file

@ -72,7 +72,7 @@ WindowManager::WindowManager(const Gfx::PaletteImpl& palette)
{ {
s_the = this; s_the = this;
reload_config(false); reload_config();
Compositor::the().did_construct_window_manager({}); Compositor::the().did_construct_window_manager({});
} }
@ -91,16 +91,11 @@ NonnullRefPtr<Cursor> WindowManager::get_cursor(const String& name)
return Cursor::create(*Gfx::Bitmap::load_from_file(s_default_cursor_path), s_default_cursor_path); return Cursor::create(*Gfx::Bitmap::load_from_file(s_default_cursor_path), s_default_cursor_path);
} }
void WindowManager::reload_config(bool set_screen) void WindowManager::reload_config()
{ {
m_config = Core::ConfigFile::open("/etc/WindowServer/WindowServer.ini"); m_config = Core::ConfigFile::open("/etc/WindowServer/WindowServer.ini");
m_double_click_speed = m_config->read_num_entry("Input", "DoubleClickSpeed", 250); m_double_click_speed = m_config->read_num_entry("Input", "DoubleClickSpeed", 250);
if (set_screen) {
set_resolution(m_config->read_num_entry("Screen", "Width", 1920), m_config->read_num_entry("Screen", "Height", 1080));
}
m_hidden_cursor = get_cursor("Hidden"); m_hidden_cursor = get_cursor("Hidden");
m_arrow_cursor = get_cursor("Arrow"); m_arrow_cursor = get_cursor("Arrow");
m_hand_cursor = get_cursor("Hand"); m_hand_cursor = get_cursor("Hand");

View file

@ -82,7 +82,7 @@ public:
Palette palette() const { return Palette(*m_palette); } Palette palette() const { return Palette(*m_palette); }
RefPtr<Core::ConfigFile> config() const { return m_config; } RefPtr<Core::ConfigFile> config() const { return m_config; }
void reload_config(bool); void reload_config();
void add_window(Window&); void add_window(Window&);
void remove_window(Window&); void remove_window(Window&);