From b82fdaff917582a9d568969e15e61b398c71e990 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Wed, 25 Sep 2024 11:45:04 +0100 Subject: [PATCH] wayland: log compositor name in startup --- src/backend/Wayland.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backend/Wayland.cpp b/src/backend/Wayland.cpp index 863e2f2..e622fc0 100644 --- a/src/backend/Wayland.cpp +++ b/src/backend/Wayland.cpp @@ -82,6 +82,9 @@ bool Aquamarine::CWaylandBackend::start() { return false; } + auto XDGCURRENTDESKTOP = getenv("XDG_CURRENT_DESKTOP"); + backend->log(AQ_LOG_DEBUG, std::format("Connected to a wayland compositor: {}", (XDGCURRENTDESKTOP ? XDGCURRENTDESKTOP : "unknown (XDG_CURRENT_DEKSTOP unset?)"))); + waylandState.registry = makeShared((wl_proxy*)wl_display_get_registry(waylandState.display)); backend->log(AQ_LOG_DEBUG, std::format("Got registry at 0x{:x}", (uintptr_t)waylandState.registry->resource()));