diff options
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 9367d870..86c5da21 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -44,6 +44,10 @@ 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, nullptr); + // let's init the compositor. // it initializes basic Wayland stuff in the constructor. g_pCompositor = std::make_unique<CCompositor>(); |
