added HYPRLAND_LOG_WLR envvar

This commit is contained in:
vaxerski 2022-08-22 15:50:02 +02:00
parent 8a6e29974b
commit c83948ea9a

View file

@ -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>();