mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 16:45:59 +01:00
added HYPRLAND_LOG_WLR envvar
This commit is contained in:
parent
8a6e29974b
commit
c83948ea9a
1 changed files with 4 additions and 0 deletions
|
@ -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>();
|
||||
|
|
Loading…
Reference in a new issue