Skip to content

Commit

Permalink
wayland: log compositor name in startup
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Sep 25, 2024
1 parent 203fc0f commit b82fdaf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/backend/Wayland.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<CCWlRegistry>((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()));
Expand Down

0 comments on commit b82fdaf

Please sign in to comment.