mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +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:
parent
481c0419ba
commit
f4168be700
6 changed files with 82 additions and 91 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue