From dc7d783d1439b92b16bfe1851c2b699e7c7267e0 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 5 Mar 2023 13:37:21 +0000 Subject: Initialize priority managers before server init --- src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main.cpp') 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(); g_pCompositor->explicitConfigPath = configPath; + g_pCompositor->initServer(); + Debug::log(LOG, "Hyprland init finished."); // If all's good to go, start. -- cgit v1.2.3