Initialize priority managers before server init

This commit is contained in:
vaxerski
2023-03-05 13:37:21 +00:00
parent 8e5ee31f30
commit dc7d783d14
4 changed files with 97 additions and 82 deletions

View File

@@ -28,6 +28,12 @@
#include "hyprerror/HyprError.hpp"
#include "plugins/PluginSystem.hpp"
enum eManagersInitStage
{
STAGE_PRIORITY = 0,
STAGE_LATE
};
class CCompositor {
public:
CCompositor();
@@ -93,6 +99,7 @@ class CCompositor {
std::vector<CWindow*> m_vWindowsFadingOut;
std::vector<SLayerSurface*> m_vSurfacesFadingOut;
void initServer();
void startCompositor();
void cleanup();
@@ -188,6 +195,7 @@ class CCompositor {
private:
void initAllSignals();
void setRandomSplash();
void initManagers(eManagersInitStage stage);
uint64_t m_iHyprlandPID = 0;
};