mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-04 22:22:00 -07:00
added HYPRLAND_LOG_WLR envvar
This commit is contained in:
@@ -44,6 +44,10 @@ int main(int argc, char** argv) {
|
|||||||
|
|
||||||
std::cout << "Welcome to Hyprland!\n";
|
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.
|
// let's init the compositor.
|
||||||
// it initializes basic Wayland stuff in the constructor.
|
// it initializes basic Wayland stuff in the constructor.
|
||||||
g_pCompositor = std::make_unique<CCompositor>();
|
g_pCompositor = std::make_unique<CCompositor>();
|
||||||
|
Reference in New Issue
Block a user