summaryrefslogtreecommitdiff
path: root/src/xwayland/XWayland.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2025-12-18 17:23:24 +0000
committerGitHub <noreply@github.com>2025-12-18 17:23:24 +0000
commit6175ecd4c4ba817c4620f66a75e1e11da7c7a8ca (patch)
treecf73852f1fc08b1dcee5a3a7380f914aaad9c50a /src/xwayland/XWayland.cpp
parentf88deb928a0f7dc02f427473f8c29e8f2bed14a3 (diff)
debug: move to hyprutils' logger (#12673)
Diffstat (limited to 'src/xwayland/XWayland.cpp')
-rw-r--r--src/xwayland/XWayland.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/xwayland/XWayland.cpp b/src/xwayland/XWayland.cpp
index f7bdf1e6..a022217a 100644
--- a/src/xwayland/XWayland.cpp
+++ b/src/xwayland/XWayland.cpp
@@ -1,13 +1,13 @@
#include "XWayland.hpp"
#include "../Compositor.hpp"
-#include "../debug/Log.hpp"
+#include "../debug/log/Logger.hpp"
#include "../helpers/fs/FsUtils.hpp"
CXWayland::CXWayland(const bool wantsEnabled) {
#ifndef NO_XWAYLAND
// Disable Xwayland and clean up if the user disabled it.
if (!wantsEnabled) {
- Debug::log(LOG, "XWayland has been disabled, cleaning up...");
+ Log::logger->log(Log::DEBUG, "XWayland has been disabled, cleaning up...");
for (auto& w : g_pCompositor->m_windows) {
if (!w->m_isX11)
continue;
@@ -20,29 +20,29 @@ CXWayland::CXWayland(const bool wantsEnabled) {
if (!NFsUtils::executableExistsInPath("Xwayland")) {
// If Xwayland doesn't exist, don't try to start it.
- Debug::log(LOG, "Unable to find XWayland; not starting it.");
+ Log::logger->log(Log::DEBUG, "Unable to find XWayland; not starting it.");
return;
}
- Debug::log(LOG, "Starting up the XWayland server");
+ Log::logger->log(Log::DEBUG, "Starting up the XWayland server");
m_server = makeUnique<CXWaylandServer>();
if (!m_server->create()) {
- Debug::log(ERR, "XWayland failed to start: it will not work.");
+ Log::logger->log(Log::ERR, "XWayland failed to start: it will not work.");
return;
}
m_enabled = true;
#else
- Debug::log(LOG, "Not starting XWayland: disabled at compile time");
+ Log::logger->log(Log::DEBUG, "Not starting XWayland: disabled at compile time");
#endif
}
void CXWayland::setCursor(unsigned char* pixData, uint32_t stride, const Vector2D& size, const Vector2D& hotspot) {
#ifndef NO_XWAYLAND
if (!m_wm) {
- Debug::log(ERR, "Couldn't set XCursor: no XWM yet");
+ Log::logger->log(Log::ERR, "Couldn't set XCursor: no XWM yet");
return;
}