diff options
author | vaxerski <[email protected]> | 2023-03-05 13:37:21 +0000 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-03-05 13:37:21 +0000 |
commit | dc7d783d1439b92b16bfe1851c2b699e7c7267e0 (patch) | |
tree | 2af2c88d1588d45a56365f489b6be0effede4441 /src/main.cpp | |
parent | 8e5ee31f300323331a33bc58123b7fe2f5bee4a6 (diff) | |
download | Hyprland-dc7d783d1439b92b16bfe1851c2b699e7c7267e0.tar.gz Hyprland-dc7d783d1439b92b16bfe1851c2b699e7c7267e0.zip |
Initialize priority managers before server init
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index 9cfe65da..2f2674f2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -20,6 +20,8 @@ int main(int argc, char** argv) { setenv("HYPRLAND_CMD", cmd.c_str(), 1); setenv("XDG_BACKEND", "wayland", 1); setenv("_JAVA_AWT_WM_NONREPARENTING", "1", 1); + setenv("MOZ_ENABLE_WAYLAND", "1", 1); + setenv("XDG_CURRENT_DESKTOP", "Hyprland", 1); // parse some args std::string configPath; @@ -50,15 +52,13 @@ int main(int argc, char** argv) { std::cout << "Welcome to Hyprland!\n"; - const auto LOGWLR = getenv("HYPRLAND_LOG_WLR"); - if (LOGWLR && std::string(LOGWLR) == "1") - wlr_log_init(WLR_DEBUG, Debug::wlrLog); - // let's init the compositor. // it initializes basic Wayland stuff in the constructor. g_pCompositor = std::make_unique<CCompositor>(); g_pCompositor->explicitConfigPath = configPath; + g_pCompositor->initServer(); + Debug::log(LOG, "Hyprland init finished."); // If all's good to go, start. |