1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:07:46 +00:00

WindowServer: Only load /etc/WindowServer.ini once and keep it loaded

Instead of opening and reparsing WindowServer.ini at random occasions,
just keep the file open after loading it in serenity_main().

This avoids a bunch of unnecessary work, and also fixes an issue where
WindowManager::m_config might re-write stale values to disk.
This commit is contained in:
Andreas Kling 2023-01-02 17:13:39 +01:00
parent 481c0419ba
commit f4168be700
6 changed files with 82 additions and 91 deletions

View file

@ -33,6 +33,8 @@ namespace WindowServer {
int const double_click_speed_max = 900;
int const double_click_speed_min = 100;
extern RefPtr<Core::ConfigFile> g_config;
class Screen;
class MouseEvent;
class Window;